Add Folder copy/move/delete

Also implement the current folder menu
This commit is contained in:
suchmememanyskill committed 2020-12-29 01:05:33 +01:00
1 parent e1350de346
commit 5898c861ec
15 files changed
+260 -22

No files matched your search

+5 -2
View File
@@ -32,10 +32,13 @@ char *EscapeFolder(const char *current){
return ret;
}
u64 GetFileSize(char *path){
FSEntry_t GetFileInfo(const char *path){
FILINFO fno;
f_stat(path, &fno);
return fno.fsize;
FSEntry_t entry = {.optionUnion = fno.fattrib, .name = strrchr(path, '/') + 1};
if (!(*entry.name))
entry.name = "Root";
return entry;
}
char *GetFileAttribs(FSEntry_t entry){