| 973 | } |
| 974 | |
| 975 | void FileUtils::removeDirectory(std::string_view dirPath, std::function<void(bool)> callback) const |
| 976 | { |
| 977 | performOperationOffthread( |
| 978 | [path = std::string{dirPath}]() -> bool { return FileUtils::getInstance()->removeDirectory(path); }, |
| 979 | std::move(callback)); |
| 980 | } |
| 981 | |
| 982 | void FileUtils::removeFile(std::string_view filepath, std::function<void(bool)> callback) const |
| 983 | { |