From f9281cca383aa89b3fc0ee12ef90603ff8c793c7 Mon Sep 17 00:00:00 2001 From: Yersa Nordman Date: Fri, 30 Aug 2024 21:40:48 +0200 Subject: [PATCH] Skip dup if srcfile cannot be found on any path --- src/mergerfs.dup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mergerfs.dup b/src/mergerfs.dup index 6fba2cb..e849f68 100755 --- a/src/mergerfs.dup +++ b/src/mergerfs.dup @@ -343,6 +343,10 @@ def main(): relpath = mergerfs_relpath(fullpath) existing = mergerfs_all_basepaths(fullpath,relpath) + if not existing: + printf("Missing %s on all paths" % relpath) + continue + srcpath = dupfun(basepath,relpath,existing) srcfile = os.path.join(srcpath,relpath) srcfile_size = os.lstat(srcfile).st_size