mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +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
Notes:
sideshowbarker
2024-07-19 11:06:48 +09:00
Author: https://github.com/tlmrgvf
Commit: 09189e34e3
Pull-request: https://github.com/SerenityOS/serenity/pull/815
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
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