mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
FileManager: Create FileUtils
This could later be replaced with library-provided utility functions when/if they exist.
This commit is contained in:
parent
b894803a30
commit
7841aadb41
3 changed files with 144 additions and 0 deletions
10
Applications/FileManager/FileUtils.h
Normal file
10
Applications/FileManager/FileUtils.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
#pragma once
|
||||
#include <AK/String.h>
|
||||
|
||||
namespace FileUtils {
|
||||
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