Adding a syncDirectories function to build folder structure for directories that do not have files