539
539
if to_location is None:
540
to_location = os.path.basename(from_location)
541
# FIXME: If there's a trailing slash, keep removing them
542
# until we find the right bit
540
to_location = os.path.basename(from_location.rstrip("/\\"))
545
543
os.mkdir(to_location)