mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
skip nonregular files when indexing filesystem
This commit is contained in:
parent
1275ac6c42
commit
2075a8b18c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue