File size and file attributes are not refreshed correctly
Version information
Thunar 4.20.3, Manjaro
Steps to reproduce
- Go to empty directory.
dd if=/dev/urandom of=b bs=1k count=1
chmod -r b
rm b
dd if=/dev/urandom of=b bs=2k count=1
Current behavior
Thunar shows 1 KiB on a file, but 2 KiB on status bar for entire directory. File is visible as read-only.
Expected outcome
Thunar shows 2 KiB on a file and 2 KiB on status bar for entire directory. File is not visible as read-only.
Additional information
I can see a lot of issues with file has wrong size or file/directory has wrong attributes (e.g. read-only symbol icon is not visible). All issues has gone when file view is refreshed (e.g. F5 key).
Examples:
-
makepkg
on Arch Linux creates read-onlypkg
directory while it's still working, but Thunar doesn't visualize it (need to press F5). - when GIMP 3.0.4 saves JPEG-XL file, Thunar sees wrong file size, e.g. 288 KiB, but after pressing F5 it shows correct file size - 13.9 MiB.