From f2aa233e0117629caabaea514352baa56dd80d30 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Tue, 19 Mar 2024 15:45:07 -0600 Subject: [PATCH] Fixed monitoring with on_modified (Thanks JayZed!) --- subgen/subgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgen/subgen.py b/subgen/subgen.py index c355948..0e74a89 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -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