Add file attributes to menus

+ fix a few misc things
+ bump version (readme isn't updated yet)
This commit is contained in:
Such Meme, Many Skill
2020-01-07 15:28:23 +01:00
parent 00bd1cd083
commit 008d3ab494
5 changed files with 63 additions and 30 deletions

View File

@@ -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;
}