com-lihaoyi / os-lib

OS-Lib is a simple, flexible, high-performance Scala interface to common OS filesystem and subprocess APIs
Other
690 stars 71 forks source link

Watch windows #236

Closed sake92 closed 11 months ago

sake92 commented 11 months ago

There are 2 parts to this fix:

  1. the FILE_TREE modifier, which tells Windows to watch the whole folder recursively. This prevents errors when trying to move/rename a folder, since otherwise it locks them and we get errors.. Got this from here https://stackoverflow.com/a/6265860/4496364
  2. preventing dynamic registration of subfolders in the recursiveWatches method

The diff in the test is a bit messed up, there are just a few lines changed.. :/