mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
FileManager: Added support for deleting directories
Directories can now be deleted using the "Delete..." action from the context menu
This commit is contained in:
parent
9009390f9c
commit
09189e34e3
3 changed files with 66 additions and 3 deletions
|
@ -2,9 +2,11 @@
|
|||
#include <AK/String.h>
|
||||
|
||||
namespace FileUtils {
|
||||
bool copy_file_or_directory(const String& src_path, const String& dst_path);
|
||||
|
||||
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& src_path, const String& dst_path, const struct stat& src_stat, int src_fd);
|
||||
bool copy_directory(const String& src_path, const String& dst_path);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue