Apparent size toggle now also affects directories

This commit is contained in:
Omer Tuchfeld 2019-11-23 12:39:31 +02:00
parent a5e08cf597
commit 6604410696

View file

@ -71,7 +71,7 @@ static void stat_to_dir(struct stat *fs) {
if(!(buf_dir->flags & (FF_OTHFS|FF_EXL))) {
buf_dir->size = fs->st_blocks * S_BLKSIZE;
buf_dir->asize = fs->st_size;
buf_dir->asize = S_ISDIR(fs->st_mode) ? 0 : fs->st_size;
}
buf_ext->mode = fs->st_mode;