ajout du file explorer

reste à fix le get_file_info, ajouter le download/upload/delete
This commit is contained in:
2023-02-16 20:16:30 +01:00
parent 82315c7c4f
commit cb5ec53bd2
10 changed files with 529 additions and 42 deletions

View File

@@ -7,12 +7,18 @@
#include <sys/stat.h>
#include "resolve_apis.h"
#define BUFFER_SIZE 4096
// Define the maximum number of drives that we can handle
#define MAX_DRIVES 26
extern API Api;
int delete_file(char* path);
int delete_dir(char* path);
int get_object_info(char* path, struct stat* fileinfo);
char** get_file_list(const char* dirPath, int* numFiles);
int get_drives_list(char* buf);
char* get_file_list(const char* dirPath, int* numFiles);
void download_file();
void download_folder();
void upload_file();