| 123 | #endif |
| 124 | |
| 125 | bool UnixFileSystem::DeleteDirectory(const String& path, bool deleteContents) |
| 126 | { |
| 127 | #if HAS_DIRS |
| 128 | const UnixString pathANSI(*path, path.Length()); |
| 129 | if (deleteContents) |
| 130 | { |
| 131 | return DeleteUnixPathTree(pathANSI.Get()); |
| 132 | } |
| 133 | else |
| 134 | { |
| 135 | return rmdir(pathANSI.Get()) != 0; |
| 136 | } |
| 137 | #else |
| 138 | return true; |
| 139 | #endif |
| 140 | } |
| 141 | |
| 142 | bool UnixFileSystem::DirectoryExists(const StringView& path) |
| 143 | { |
nothing calls this directly
no test coverage detected