| 980 | } |
| 981 | |
| 982 | void FileUtils::removeFile(std::string_view filepath, std::function<void(bool)> callback) const |
| 983 | { |
| 984 | auto fullPath = fullPathForFilename(filepath); |
| 985 | performOperationOffthread( |
| 986 | [path = std::string{fullPath}]() -> bool { return FileUtils::getInstance()->removeFile(path); }, |
| 987 | std::move(callback)); |
| 988 | } |
| 989 | |
| 990 | void FileUtils::renameFile(std::string_view path, |
| 991 | std::string_view oldname, |