mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-07 22:52:53 -04:00
Added back scanning in BHT TX
Added file creation date display in File Manager
This commit is contained in:
parent
aebd1757da
commit
441a266dc4
17 changed files with 231 additions and 363 deletions
|
@ -205,6 +205,14 @@ void rename_file(const std::filesystem::path& file_path, const std::filesystem::
|
|||
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) {
|
||||
FILINFO filinfo;
|
||||
|
||||
f_stat(reinterpret_cast<const TCHAR*>(file_path.c_str()), &filinfo);
|
||||
|
||||
return { filinfo.fdate, filinfo.ftime };
|
||||
}
|
||||
|
||||
uint32_t make_new_directory(const std::filesystem::path& dir_path) {
|
||||
return f_mkdir(reinterpret_cast<const TCHAR*>(dir_path.c_str()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue