Add file attributes to menus
+ fix a few misc things + bump version (readme isn't updated yet)
This commit is contained in:
@@ -86,9 +86,6 @@ int copy(const char *locin, const char *locout, bool print, bool canCancel){
|
||||
return 23;
|
||||
}
|
||||
|
||||
if ((res = f_chmod(locout, in_info.fattrib, 0x3F)))
|
||||
return res;
|
||||
|
||||
buff = malloc (BUFSIZE);
|
||||
sizeoffile = f_size(&in);
|
||||
totalsize = sizeoffile;
|
||||
@@ -123,6 +120,9 @@ int copy(const char *locin, const char *locout, bool print, bool canCancel){
|
||||
f_close(&out);
|
||||
free(buff);
|
||||
|
||||
if ((res = f_chmod(locout, in_info.fattrib, 0x3A)))
|
||||
return res;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -216,9 +216,6 @@ int copy_recursive(char *path, char *dstpath){
|
||||
if (f_stat(startpath, &fno))
|
||||
return 22;
|
||||
|
||||
if ((res = f_chmod(destpath, fno.fattrib, 0x3F)))
|
||||
return res;
|
||||
|
||||
while (!f_readdir(&dir, &fno) && fno.fname[0]){
|
||||
if (fno.fattrib & AM_DIR){
|
||||
copy_recursive(getnextloc(startpath, fno.fname), destpath);
|
||||
@@ -244,5 +241,8 @@ int copy_recursive(char *path, char *dstpath){
|
||||
free(destpath);
|
||||
free(destfoldername);
|
||||
|
||||
if ((res = f_chmod(destpath, fno.fattrib, 0x3A)))
|
||||
return res;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user