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

FileManager: Implement the cut file operation

This exploits the comment lines in the text/uri-list specification:
https://tools.ietf.org/rfc/rfc2483.txt (page 11), which might be a bit
hackish, but the specification suggests doing the same for other uses,
so it should be fine.
This commit is contained in:
Idan Horowitz 2020-12-28 17:50:51 +02:00 committed by Andreas Kling
parent 7450f20b81
commit b4bb2b141c
2 changed files with 57 additions and 4 deletions

View file

@ -33,6 +33,11 @@
namespace FileUtils {
enum class FileOperation {
Copy = 0,
Cut
};
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);