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

@@ -11,7 +11,7 @@ void clearFileVector(Vector_t *v){
free(v->data);
}
Vector_t /* of type FSEntry_t */ ReadFolder(char *path, int *res){
Vector_t /* of type FSEntry_t */ ReadFolder(const char *path, int *res){
Vector_t out = newVec(sizeof(FSEntry_t), 16); // we may want to prealloc with the same size as the folder
DIR dir;
FILINFO fno;

View File

@@ -4,4 +4,4 @@
#include "../fstypes.h"
void clearFileVector(Vector_t *v);
Vector_t /* of type FSEntry_t */ ReadFolder(char *path, int *res);
Vector_t /* of type FSEntry_t */ ReadFolder(const char *path, int *res);