Skip to content

Commit

Permalink
Fixed monitoring with on_modified (Thanks JayZed!)
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Mar 19, 2024
1 parent d5a918d commit f2aa233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subgen/subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def path_mapping(fullpath):
if monitor:
# Define a handler class that will process new files
class NewFileHandler(FileSystemEventHandler):
def on_created(self, event):
def on_modified(self, event):
# Only process if it's a file
if not event.is_directory:
file_path = event.src_path
Expand Down

0 comments on commit f2aa233

Please sign in to comment.