Commit ce88e7a4 authored by Jens Georg's avatar Jens Georg

Merge branch 'dontImportFromHiddenDirs' into 'master'

skip hidden sub-folders in enumerate_files() recursion

Closes #60

See merge request !8
parents 029453bb 42aac84e
......@@ -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