165 while len(dir) > 1
and dir[-1] ==
'/':
178 parent = os.path.dirname(dir)
179 base = os.path.basename(dir)
182 contents = Ifdh.ls(parent, 1)
189 for content
in contents:
193 if len(content) > 1
and content[-1] ==
'/':
197 if os.path.basename(content[:-1]) == base:
def existdir(dir, verbose)