aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2014-02-15 19:56:53 +0100
committerAndré Erdmann <dywi@mailerd.de>2014-02-15 19:56:53 +0100
commitdb2aa8720cb4c726551dc640f179189820a11d09 (patch)
treefd08f1dd4f392448146554ab185f7c3f31e353a9 /roverlay/fsutil.py
parentroverlay/strutil.py, unquote(): fix keep_going (diff)
downloadR_overlay-db2aa8720cb4c726551dc640f179189820a11d09.tar.gz
R_overlay-db2aa8720cb4c726551dc640f179189820a11d09.tar.bz2
R_overlay-db2aa8720cb4c726551dc640f179189820a11d09.zip
roverlay/fsutil.py, get_fs_dict(): fix
os.walk() should be called with my_root as dir, not initial_root (which is an issue when initial_root is not an absolute path). Not an issue for roverlay so far as get_fs_dict() gets called with abspaths only.
Diffstat (limited to 'roverlay/fsutil.py')
-rw-r--r--roverlay/fsutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roverlay/fsutil.py b/roverlay/fsutil.py
index 309aadc..d0091c2 100644
--- a/roverlay/fsutil.py
+++ b/roverlay/fsutil.py
@@ -120,7 +120,7 @@ def get_fs_dict (
1 + ( my_root.rfind ( os.sep ) if include_root else len ( my_root ) )
)
- for root, dirnames, filenames in os.walk ( initial_root ):
+ for root, dirnames, filenames in os.walk ( my_root ):
if dirname_filter:
dirnames[:] = [ d for d in dirnames if dirname_filter ( d ) ]