dont scan orphaned volumes

This commit is contained in:
ed 2022-04-14 17:11:51 +02:00
parent 9697fb3d84
commit 951fdb27ca

View file

@ -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)