Files icon indicating copy to clipboard operation
Files copied to clipboard

Bug: File watcher doesn't work for WSL

Open quantumwebco opened this issue 2 years ago • 3 comments

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

debug.log

quantumwebco avatar May 24 '22 16:05 quantumwebco

@quantumwebco is this still an issue in the preview version? https://files.community/download/preview

yaira2 avatar May 24 '22 18:05 yaira2

@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?

quantumwebco avatar May 27 '22 11:05 quantumwebco

Is this still an issue in 2.3.3.0?

Josh65-2201 avatar Aug 01 '22 00:08 Josh65-2201

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

hishitetsu avatar Aug 04 '23 15:08 hishitetsu