allDirectories default to false