From 951fdb27ca0b9df947615dca0b377981dd752068 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 14 Apr 2022 17:11:51 +0200 Subject: [PATCH] dont scan orphaned volumes --- copyparty/up2k.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index c4ed4a91..17023f6d 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -596,6 +596,9 @@ class Up2k(object): if stat.S_ISDIR(inf.st_mode): if abspath in excl or abspath == histpath: continue + if iname == ".th" and bos.path.isdir(os.path.join(abspath, "top")): + # abandoned or foreign, skip + continue # self.log(" dir: {}".format(abspath)) try: ret += self._build_dir(dbw, top, excl, abspath, rei, reh, seen)