skip nonregular files when indexing filesystem

This commit is contained in:
ed 2022-05-09 19:56:17 +00:00
parent 1275ac6c42
commit 2075a8b18c

View file

@ -610,6 +610,8 @@ class Up2k(object):
except:
m = "failed to index subdir [{}]:\n{}"
self.log(m.format(abspath, min_ex()), c=1)
elif not stat.S_ISREG(inf.st_mode):
self.log("skip type-{:x} file [{}]".format(inf.st_mode, abspath))
else:
# self.log("file: {}".format(abspath))
seen_files[iname] = 1