added deleteEmptySubdirectories attribute