diff options
-rw-r--r-- | server.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -71,8 +71,8 @@ class EventHandler(FileSystemEventHandler): def index(path, parent): - if os.path.basename(path).startswith("."): - # Skip hidden files + if not os.path.exists(path) or os.path.basename(path).startswith("."): + # Skip nonexistent or hidden files return print("Indexing", path, parent) |