Add Folder copy/move/delete

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

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){