Skip to content
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

Generic watcher on Windows does not always work recursively #76

Closed
SpartanJ opened this issue Nov 4, 2014 · 1 comment
Closed

Generic watcher on Windows does not always work recursively #76

SpartanJ opened this issue Nov 4, 2014 · 1 comment
Labels
bug Something isn't working major

Comments

@SpartanJ
Copy link
Owner

SpartanJ commented Nov 4, 2014

Original report by Nils Desle (Bitbucket: nilsdesle, ).


After fixing issue 34 locally, I'm now working with the generic watcher on windows, and its behaviour is not as I expect.

Using the test application, in generic mode (Windows 7), here's the scenario:

  1. Inside the watched folder, create a new folder "Level1"
  2. Observe that this is detected
  3. Inside "Level1", create "Level2"
  4. Observe that this is detected
  5. Inside "Level2", create "Level3"
  6. Observe that this is detected
  7. Inside "Level3", create "Level4"
  8. Observe that this is detected
  9. Inside "Level4", create a file "bla.txt"
  10. Observe that this is detected
  11. Delete all files and folders at once (Shift-del on "Level1" in explorer)
  12. Observe that each folder and file gets a DELETE event

so far so good

  1. Create the same folder/file structure OUTSIDE of the watched folder
  2. Copy the entire folder structure "Level1" over to the watched folder in one go, using windows explorer
  3. Observe that only "Level1" gets an added notification, and nothing else is detected

Not what I expected

  1. Add file "test.txt" to "Level4"
  2. Observe that NO notification is made, so this new file is not seen or reported

Again, not what I expected

  1. Add file "test.txt" to "Level1"
  2. Observe that this aded file is reported normally
  3. Delete the enire folder structure "Level1" in one go
  4. Observe that you get a Delete event for "Level1", "Level1\test.txt" AND a delete event for the "Level2" folder and nothing else (note that "Level2" was never reported as being created!)

Any idea why all this is happening? Combined with issue #34 and #35, I'm getting quite worried here...

@SpartanJ
Copy link
Owner Author

SpartanJ commented Nov 6, 2014

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


Fixed issue #36.
This sould resolve the recursive generic watcher issues.

@SpartanJ SpartanJ closed this as completed Nov 6, 2014
@SpartanJ SpartanJ added major bug Something isn't working labels Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working major
Projects
None yet
Development

No branches or pull requests

1 participant