New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot rename/move parent folder of watched folder #356
Comments
I have the same problem. Is there any solution? |
Same problem here! |
I can move the watched directory itself (events even keep working), but not the parent directory. For example, if I run:
Then
And moving the directory indeed fails:
I think this is just how Windows works; I see other people saying the same (e.g. here), and I've run in to problems with this over the years. Maybe @mattn has any idea about this? |
I think #370 may have fixed this. I'll close this for now as I can't reproduce it, but feel free to get back and we can reopen. |
Hello, |
You need to create a new issue with full details and a way to reproduce. |
Before reporting an issue, please ensure you are using the latest release of fsnotify.
Which operating system (GOOS) and version are you using?
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.17134 N/A Build 17134
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Workstation
OS Build Type: Multiprocessor Free
Please describe the issue that occurred.
I watched path: C:\test1\test2
But when i rename or move folder C:\test1 it show error message "The action can't be completed because the folder or a file in it is open in another program"
Are you able to reproduce the issue? Please provide steps to reproduce and a code sample if possible.
`func TestMonitorFolder(t *testing.T) {
watcher, err := fsnotify.NewWatcher()
if err != nil {
log.Fatal(err)
}
defer watcher.Close()
}`
The text was updated successfully, but these errors were encountered: