WSL2 file system changes are not updated automatically. Have to press F5 manually

WSL2 allows browsing Linux file systems via paths like \\wsl.localhost\Ubuntu\home\user
The screenshot below shows the problem:
The folder SomeTestDirectory is not visible in the Dopus unless I manually click F5

What happens in File Explorer?

More things to check under Changes to folders are not being detected

Windows File Explorer has the same issue. Have to press F5 manually to see the changes.

Thank you for the link, I think the problem is that it is a Samba share that doesn't support change notifications.

Is it possible to make DirectoryOpus poll the directory every 5 seconds f.e.?

Update: it seems that it is a known issue Need to manually refresh file explorer in WSL to see changes, both windows10 and windows11

Samba usually works these days, but there are still things which will break it, such as something inside a Docker container making changes to a filesystem that lives outside of Docker. In situations like that, change events aren't generated outside the Docker container (even though the filesystem is outside of it!), due to deficiencies in how Linux and Docker are designed, and nothing will know the change occurred (whether Opus, File Explorer, or something else). WSL may have similar issues sometimes.

You can tell Opus that change notification is broken on certain paths, and to use polling instead, via here:

Preferences / Miscellaneous / Advanced: [Troubleshooting] notify_poll_paths

But beware that his will not work well with large/deep directories, and of course this won't fix the problem in anything except Opus.

Thank you for the explanation.
notify_poll_paths sounds like a nice workaround.
I have tried it, it works. I added \\wsl.localhost\Ubuntu to it.

1 Like