@@ -538,7 +538,7 @@ def __update_rule_monitor(
538538 # Fire 'modified' events for all dirs and files in subpath
539539 # to ensure that all rule files are loaded
540540
541- for ent in scandir (src_path ):
541+ for ent in os . scandir (src_path ):
542542 if ent .is_dir (follow_symlinks = True ):
543543
544544 # logger.debug('(%s) Dispatch DirCreatedEvent for: %s'
@@ -1139,7 +1139,7 @@ def __update_file_monitor(self, event):
11391139 # For create this occurs by eg. mkdir -p 'path/subpath/subpath2'
11401140 # or 'cp -rf'
11411141
1142- for ent in scandir (src_path ):
1142+ for ent in os . scandir (src_path ):
11431143 if ent .is_dir (follow_symlinks = True ):
11441144 vgrid_sub_path = strip_base_dirs (ent .path )
11451145
@@ -1491,7 +1491,7 @@ def add_vgrid_file_monitor(configuration, vgrid_name, path):
14911491
14921492 # Traverse dirs for subdirs created since last run
14931493
1494- for ent in scandir (vgrid_files_path ):
1494+ for ent in os . scandir (vgrid_files_path ):
14951495 if ent .is_dir (follow_symlinks = True ):
14961496 vgrid_sub_path = strip_base_dirs (ent .path )
14971497 # Force utf8 everywhere to avoid encoding issues
@@ -1839,7 +1839,7 @@ def monitor(configuration, vgrid_name):
18391839 configuration .vgrid_triggers )
18401840 all_trigger_rules .append (rule_path )
18411841 else :
1842- for ent in scandir (vgrid_home ):
1842+ for ent in os . scandir (vgrid_home ):
18431843 if configuration .vgrid_triggers in ent .name :
18441844 rule_path = ent .path
18451845 all_trigger_rules .append (rule_path )
@@ -1981,7 +1981,7 @@ def monitor(configuration, vgrid_name):
19811981
19821982 # Each top vgrid gets is own process
19831983
1984- for ent in scandir (configuration .vgrid_home ):
1984+ for ent in os . scandir (configuration .vgrid_home ):
19851985 vgrid_files_path = os .path .join (configuration .vgrid_files_home ,
19861986 ent .name )
19871987 if os .path .isdir (ent .path ) and os .path .isdir (vgrid_files_path ):
0 commit comments