提交 2f377d11 编写于 作者: A Ansgar

link_morgue: do not touch `.nobackup` files

上级 327093ef
......@@ -104,7 +104,8 @@ def scan_directory(path: bytes):
filenames.append(entry.path)
yield from (fn for fn in filenames
if fn + b".nosnapshot" not in filenames
and not fn.endswith(b".nosnapshot"))
and not fn.endswith(b".nosnapshot")
and not fn.endswith(b"/.nobackup"))
for path in directories:
yield from scan_directory(path)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册