protected int appendSubDirectories(List<JsonDirData> allDirectories, List<Directory> indexedDirectories, File parentDir, int dirIx, String relativePath) {
System.out.println("Directory: " + dirIx + ", " + relativePath);
int ix = dirIx;
if (parentDir.isDirectory()) {
File[] subDirs = parentDir.listFiles(new DirFilter());
Arrays.sort(subDirs);
JsonDirData dirData;
for (File subDir: subDirs) {
if (!relativePath.endsWith("/")) {
relativePath += "/";