def __init__(self, object_resource: str):
     logging.debug(f'Metadata request {object_resource}')
     object_resource = sanitize_path(object_resource, force_dir=True)
     self.object_resource = object_resource
 def __init__(self, object_resource: str, top: int):
     object_resource = sanitize_path(object_resource)
     self.object_resource = object_resource
     self.top = top
 def __init__(self, object_resource: str, is_dir: bool):
     self.object_resource = sanitize_path(
         object_resource, force_dir=is_dir, force_file=not is_dir)
 def __init__(self, source: str, destination: str, is_file: bool):
     self._destination = sanitize_path(
         destination, force_dir=not is_file, force_file=is_file)
     self._source = sanitize_path(
         source, force_dir=not is_file, force_file=is_file)
Exemple #5
0
 def __init__(self, object_resource: str, list_type: ListType):
     if not object_resource.endswith('/'):
         object_resource += '/'
     object_resource = sanitize_path(object_resource)
     self._object_resource = object_resource
     self._list_type = list_type