Commit 724691a5 authored by Jens Georg's avatar Jens Georg

Revert "Revert "Merge branch 'dontImportFromHiddenDirs' into 'master'""

I'm stupid and mixed up bugs.

This reverts commit 397f7166.
parent 397f7166
......@@ -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