book json
[audio.git] / src / archive / utils.py
index 35f7a74..e09f325 100644 (file)
@@ -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:
     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("/")
             yield os.path.join(path, fname)[root_len:].lstrip("/")