Skip to content
Snippets Groups Projects
Commit de8b2621 authored by p11user's avatar p11user
Browse files

Monitor only create events on directory again

parent defde2b0
No related branches found
No related tags found
No related merge requests found
......@@ -171,8 +171,8 @@ class InotifyDetector():
# this one has to be monitored as well
# print path, event.name, parts
# if is_created and is_dir and event.name:
if is_dir and event.name:
if is_created and is_dir and event.name:
# if is_dir and event.name:
dirname = path + os.sep + event.name
self.log.info("Directory event detected: " + str(dirname) + "," + str(parts))
if dirname in self.paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment