Remove subdirectories when adding parent