1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

FileManager: Use newly introduced LibCore file management helpers

Most of the functions under FileUtils were removed, except those which
dealt with file deletion, as they spawned MessageBoxes for errors, as
such, those functions were written in terms of Core::File::remove.
This commit is contained in:
Mițca Dumitru 2021-02-21 02:56:28 +02:00 committed by Andreas Kling
parent ecafee86f8
commit 255da9b02b
4 changed files with 20 additions and 216 deletions

View file

@ -40,11 +40,4 @@ enum class FileOperation {
void delete_path(const String&, GUI::Window*);
void delete_paths(const Vector<String>&, bool should_confirm, GUI::Window*);
int delete_directory(String directory, String& file_that_caused_error);
bool copy_file_or_directory(const String& src_path, const String& dst_path);
String get_duplicate_name(const String& path, int duplicate_count);
bool copy_file(const String& dst_path, const struct stat& src_stat, Core::File&);
bool copy_directory(const String& src_path, const String& dst_path, const struct stat& src_stat);
bool link_file(const String& src_path, const String& dst_path);
}