@@ -440,12 +440,12 @@ def scan_resources(self, path, exclude_paths=None, base_path=None):
440
440
resources .base_path = base_path
441
441
442
442
if isfile (path ):
443
- self .add_file (path , resources , base_path , exclude_paths = exclude_paths )
443
+ self ._add_file (path , resources , base_path , exclude_paths = exclude_paths )
444
444
else :
445
- self .add_dir (path , resources , base_path , exclude_paths = exclude_paths )
445
+ self ._add_dir (path , resources , base_path , exclude_paths = exclude_paths )
446
446
return resources
447
447
448
- def add_dir (self , path , resources , base_path , exclude_paths = None ):
448
+ def _add_dir (self , path , resources , base_path , exclude_paths = None ):
449
449
""" os.walk(top[, topdown=True[, onerror=None[, followlinks=False]]])
450
450
When topdown is True, the caller can modify the dirnames list in-place
451
451
(perhaps using del or slice assignment), and walk() will only recurse into
@@ -506,9 +506,9 @@ def add_dir(self, path, resources, base_path, exclude_paths=None):
506
506
507
507
for file in files :
508
508
file_path = join (root , file )
509
- self .add_file (file_path , resources , base_path )
509
+ self ._add_file (file_path , resources , base_path )
510
510
511
- def add_file (self , file_path , resources , base_path , exclude_paths = None ):
511
+ def _add_file (self , file_path , resources , base_path , exclude_paths = None ):
512
512
resources .file_basepath [file_path ] = base_path
513
513
514
514
if self .is_ignored (file_path ):
0 commit comments