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