Commit 42aac84e authored by Moritz's avatar Moritz

skip hidden sub-folders in enumerate_files() recursion

fixes #60
parent 7f7aee32
......@@ -1493,8 +1493,12 @@ public class ImportPage : CheckerboardPage {
return false;
}
if (!enumerate_files(fsid, append_path(dir, subdir), import_list))
return false;
if (subdir.has_prefix(".")) {
debug("Skipping hidden sub-folder %s in %s", subdir, dir);
} else {
if (!enumerate_files(fsid, append_path(dir, subdir), import_list))
return false;
}
}
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment