X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/e7e2c234192c3e71cd69376eac9208a996eea935..2d950c51810e29fd54bf706fa01a74be065f881c:/src/archive/utils.py diff --git a/src/archive/utils.py b/src/archive/utils.py index 35f7a74..e09f325 100644 --- a/src/archive/utils.py +++ b/src/archive/utils.py @@ -39,4 +39,5 @@ def all_files(root_path): root_len = len(root_path) for path, dirs, files in os.walk(root_path, followlinks=True): for fname in files: + if '\n' in fname: continue yield os.path.join(path, fname)[root_len:].lstrip("/")