Files
Files copied to clipboard
Bug: File watcher doesn't work for WSL
Description
When pasting a file or anything in the WSL filesystem I have to hit F5 for the view to update. The green tick shows in the top right but the files list is not updated
This particularly happens when working in the WSL filesystem but occasionally happens in native NTFS too
Steps To Reproduce
- Open directory in WSL
- Paste a file and see that the folder doesn't display the new item
Expected behavior
- New item automatically shows
Files Version
2.1.15.0
Windows Version
Windows 11 Pro 21H2 22000.706
Relevant Assets/Logs
@quantumwebco is this still an issue in the preview version? https://files.community/download/preview
@yaichenbaum Yeah, still happening on preview. I get the green tick in the top right to say it's completed but it doesn't update the view. I haven't noticed it doing it much in NTFS, just occasionally. But pasting in to WSL it happens always. The performance between windows and linux filesystems isn't great in WSL so maybe it's to do with that?
Is this still an issue in 2.3.3.0?
As a workaround, the list is now automatically refreshed when files are added. #13068 If this issue can be resolved, please remove the workaround. https://github.com/files-community/Files/blob/00e015e17ad515a4dd8d0d35ab6ff94162180e79/src/Files.App/Data/Models/ItemViewModel.cs#L1522