diff options
author | André Erdmann <dywi@mailerd.de> | 2014-02-15 19:56:53 +0100 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2014-02-15 19:56:53 +0100 |
commit | db2aa8720cb4c726551dc640f179189820a11d09 (patch) | |
tree | fd08f1dd4f392448146554ab185f7c3f31e353a9 /roverlay/fsutil.py | |
parent | roverlay/strutil.py, unquote(): fix keep_going (diff) | |
download | R_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.py | 2 |
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 ) ] |