Ramesh-vani commited on
Commit
1ad02e7
·
verified ·
1 Parent(s): b215abb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -28,6 +28,11 @@ class FileHandler(FileSystemEventHandler):
28
  return
29
  print(f'File {event.src_path} has been deleted.')
30
 
 
 
 
 
 
31
  JOIN = {}
32
 
33
  WATCH = {}
 
28
  return
29
  print(f'File {event.src_path} has been deleted.')
30
 
31
+ def on_moved(self, event):
32
+ if event.is_directory:
33
+ return
34
+ print(f'File {event.src_path} has been renamed to {event.dest_path}.')
35
+
36
  JOIN = {}
37
 
38
  WATCH = {}