aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.py b/server.py
index 04a92e2..1e02a20 100644
--- a/server.py
+++ b/server.py
@@ -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)