fnp
/
audio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[audio.git]
/
src
/
archive
/
utils.py
diff --git
a/src/archive/utils.py
b/src/archive/utils.py
index
b8598df
..
e09f325
100644
(file)
--- a/
src/archive/utils.py
+++ b/
src/archive/utils.py
@@
-37,6
+37,7
@@
def sha1_file(f):
def all_files(root_path):
root_len = len(root_path)
def all_files(root_path):
root_len = len(root_path)
- for path, dirs, files in os.walk(root_path):
+ for path, dirs, files in os.walk(root_path
, followlinks=True
):
for fname in files:
for fname in files:
+ if '\n' in fname: continue
yield os.path.join(path, fname)[root_len:].lstrip("/")
yield os.path.join(path, fname)[root_len:].lstrip("/")