Copied file are handled as hidden files when copied to remote location
Reproducer:
- Disable "show hidden files"
- Open some local folder, select some file and press CTRL+C
- Go to some remote folder and paste the file
The file fill be sorted as "hidden", so one will not see the newly created file. Pressing F5 will not help, though it will help to leave the folder and enter it again.
This does not happen on copy local-to-local, though I can reliably reproduce when copying files between a local folder and a NFS mounted folders.
As well a copy of a testfile from some fake-remote e.g. sftp://schwinn@localhost/home/schwinn/test/testfile
to some local folder, e.g. /home/schwinn
shows the bug.
This bug only shows for thunar master. Thunar 4.18.x is not affected.
It looks like the file is treated as hidden file inside _thunar_tree_view_model_dir_files_added
. A deeper look reveals, that g_file_info_get_attribute_boolean (file->info, G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP)
returns TRUE for the file.
So a patch, as simple like this will fix the problem:0001-Ignore-backup-files-for-is_hidden.patch
Though why does it return TRUE ? It seems like later on, FALSE will be returned. As well other file managers respect this attribute for the hidden state .. so I actually don't want to drop it.
@Elessar1802 , can you as well reproduce this ? / Any idea why it can happen ?