You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to get the paths, which are watched by the fsNotify.Watcher.
Because there is no .removeAll() function, I need to iterate over all watched Paths to then decide which Paths I want to remove.
A Solution like .getAllWatchedPaths() to get the Path map/array.
Target is, that I want to "Clear out" the Watcher, without closing and recreating it.
I need just One single Instance to work with, and want more possibilities to manipulate, like .removeAll() , .getAllPaths() , .addMultiplePaths() etc...
The text was updated successfully, but these errors were encountered:
What is your use case for this? If you added paths to a watcher, then it seems to me you already know which paths you're watching and can keep track of them for removal? Alternatively, you can close the watcher and create a new one to "clear" it (you mentioned you don't want to do that, but it's not clear to me why).
Also: looks like there's an issue for this already: #93 So I'll close this as a duplicate of that one.
Still, it's important that people provide actual use cases. Otherwise it's not clear if a "list all watched paths" is even the best solution; maybe it is, or maybe there's a better solution to address the use case. So I would encourage you to still post it.
I need to get the paths, which are watched by the fsNotify.Watcher.
Because there is no
.removeAll()
function, I need to iterate over all watched Paths to then decide which Paths I want to remove.A Solution like
.getAllWatchedPaths()
to get thePath
map/array.Target is, that I want to "Clear out" the Watcher, without closing and recreating it.
I need just One single Instance to work with, and want more possibilities to manipulate, like
.removeAll()
,.getAllPaths()
,.addMultiplePaths()
etc...The text was updated successfully, but these errors were encountered: