517
517
except ftplib.error_perm, e:
518
518
self._translate_perm_error(e, relpath, extra='error with list_dir')
519
529
# If FTP.nlst returns paths prefixed by relpath, strip 'em
520
530
if paths and paths[0].startswith(basepath):
521
531
entries = [path[len(basepath)+1:] for path in paths]