MCPcopy Create free account
hub / github.com/apple/foundationdb / deleteFile

Method deleteFile

fdbrpc/sim2.actor.cpp:2709–2711  ·  view source on GitHub ↗

Deletes the given file. If mustBeDurable, returns only when the file is guaranteed to be deleted even after a power failure.

Source from the content-addressed store, hash-verified

2707// Deletes the given file. If mustBeDurable, returns only when the file is guaranteed to be deleted even after a power
2708// failure.
2709Future<Void> Sim2FileSystem::deleteFile(const std::string& filename, bool mustBeDurable) {
2710 return Sim2::deleteFileImpl(&g_sim2, filename, mustBeDurable);
2711}
2712
2713ACTOR Future<Void> renameFileImpl(std::string from, std::string to) {
2714 wait(delay(0.5 * deterministicRandom()->random01()));

Calls

no outgoing calls

Tested by

no test coverage detected