Merge branch 'eried:next' into next

This commit is contained in:
Brumi-2021 2022-02-04 20:13:04 +01:00 committed by GitHub
commit d0643421a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -197,12 +197,12 @@ std::vector<std::filesystem::path> scan_root_directories(const std::filesystem::
return directory_list; return directory_list;
} }
void delete_file(const std::filesystem::path& file_path) { uint32_t delete_file(const std::filesystem::path& file_path) {
f_unlink(reinterpret_cast<const TCHAR*>(file_path.c_str())); return f_unlink(reinterpret_cast<const TCHAR*>(file_path.c_str()));
} }
void rename_file(const std::filesystem::path& file_path, const std::filesystem::path& new_name) { uint32_t rename_file(const std::filesystem::path& file_path, const std::filesystem::path& new_name) {
f_rename(reinterpret_cast<const TCHAR*>(file_path.c_str()), reinterpret_cast<const TCHAR*>(new_name.c_str())); return f_rename(reinterpret_cast<const TCHAR*>(file_path.c_str()), reinterpret_cast<const TCHAR*>(new_name.c_str()));
} }
FATTimestamp file_created_date(const std::filesystem::path& file_path) { FATTimestamp file_created_date(const std::filesystem::path& file_path) {

View File

@ -238,8 +238,8 @@ struct FATTimestamp {
uint16_t FAT_time; uint16_t FAT_time;
}; };
void delete_file(const std::filesystem::path& file_path); uint32_t delete_file(const std::filesystem::path& file_path);
void rename_file(const std::filesystem::path& file_path, const std::filesystem::path& new_name); uint32_t rename_file(const std::filesystem::path& file_path, const std::filesystem::path& new_name);
FATTimestamp file_created_date(const std::filesystem::path& file_path); FATTimestamp file_created_date(const std::filesystem::path& file_path);
uint32_t make_new_directory(const std::filesystem::path& dir_path); uint32_t make_new_directory(const std::filesystem::path& dir_path);