@staticmethod
    def folder_name_from_path(pth):
        return os.path.basename(pth.rstrip(os.sep))
Convenience method that first strips trailing path separators.
dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py/FolderUploader.folder_name_from_path