add io::copy, io::copy_all & fix ZipFileDevice::list

This commit is contained in:
MihailRis
2025-02-24 21:00:23 +03:00
parent 9cc55e30e3
commit edb581bee3
3 changed files with 77 additions and 11 deletions
+9
View File
@@ -187,6 +187,15 @@ namespace io {
/// @brief Remove file or empty directory
bool remove(const io::path& file);
/// @brief Copy src file to dst file
/// @param src source file path
/// @param dst destination file path
/// @return true if success
bool copy(const io::path& src, const io::path& dst);
/// @brief Copy all files and directories in the folder recursively
uint64_t copy_all(const io::path& src, const io::path& dst);
/// @brief Remove all files and directories in the folder recursively
uint64_t remove_all(const io::path& file);