diff options
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -29,8 +29,10 @@ con.commit() def get_parent(path): if path in watchdirs: - return os.stat("/").st_ino - return os.stat(pathlib.Path(path).parent).st_ino + parent = "/" + else: + parent = pathlib.Path(path).parent + return os.stat(parent).st_ino class EventHandler(FileSystemEventHandler): |