1
Fork 0
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:
Aaron Malpas 2019-09-10 22:57:38 +10:00 committed by Andreas Kling
parent b894803a30
commit 7841aadb41
3 changed files with 144 additions and 0 deletions

View 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);
}