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

FileManager: Move mass-copy code from DirectoryView to FileUtils

This is preparation for calling it from FileManager/main.cpp

Also made file_operation_windows take NonnullRefPtrs.
This commit is contained in:
Sam Atkins 2021-06-17 14:41:40 +01:00 committed by Andreas Kling
parent 9060310840
commit d8fb8b9583
4 changed files with 78 additions and 78 deletions

View file

@ -11,7 +11,7 @@
#include <LibGUI/Forward.h>
#include <sys/stat.h>
namespace FileUtils {
namespace FileManager {
enum class FileOperation {
Copy = 0,
@ -20,4 +20,6 @@ enum class FileOperation {
void delete_path(String const&, GUI::Window*);
void delete_paths(Vector<String> const&, bool should_confirm, GUI::Window*);
void run_file_operation([[maybe_unused]] FileOperation operation, Vector<String> const& sources, String const& destination, GUI::Window* parent_window);
}