Add MOVE command + add jank fatfs fix

This commit is contained in:
Such Meme, Many Skill committed 2020-02-07 17:43:20 +01:00
1 parent a86294218c
commit ae57cb1e63
2 files changed
+29 -12

No files matched your search

+2 -1
View File
@@ -75,7 +75,7 @@ int copy(const char *locin, const char *locout, bool print, bool canCancel){
return 21;
}
if (f_open(&in, locin, FA_READ | FA_OPEN_EXISTING)){
if ((res = f_open(&in, locin, FA_READ | FA_OPEN_EXISTING))){
return 22;
}
@@ -123,6 +123,7 @@ int copy(const char *locin, const char *locout, bool print, bool canCancel){
if ((res = f_chmod(locout, in_info.fattrib, 0x3A)))
return res;
f_stat(locin, &in_info); //somehow stops fatfs from being weird
return 0;
}