Update subgen.py
This commit is contained in:
@@ -615,8 +615,9 @@ def path_mapping(fullpath):
|
|||||||
return fullpath.replace(path_mapping_from, path_mapping_to)
|
return fullpath.replace(path_mapping_from, path_mapping_to)
|
||||||
return fullpath
|
return fullpath
|
||||||
|
|
||||||
# Define a handler class that will process new files
|
if monitor:
|
||||||
class NewFileHandler(FileSystemEventHandler):
|
# Define a handler class that will process new files
|
||||||
|
class NewFileHandler(FileSystemEventHandler):
|
||||||
def on_created(self, event):
|
def on_created(self, event):
|
||||||
# Only process if it's a file
|
# Only process if it's a file
|
||||||
if not event.is_directory:
|
if not event.is_directory:
|
||||||
|
|||||||
Reference in New Issue
Block a user