Exemplo n.º 1
0
 def __init__(self, string):
     match = self._re.match(string)
     if not match:
         raise ValueError("%s: not a OSS URI" % string)
     groups = match.groups()
     self._bucket = groups[0]
     self._object = unicodise(groups[1])
Exemplo n.º 2
0
 def __init__(self, string):
     match = self._re.match(string)
     if not match:
         raise ValueError("%s: not a OSS URI" % string)
     groups = match.groups()
     self._bucket = groups[0]
     self._object = unicodise(groups[1])
Exemplo n.º 3
0
 def __init__(self, string):
     match = self._re.match(string)
     groups = match.groups()
     if groups[0] not in (None, "file://"):
         raise ValueError("%s: not a file:// URI" % string)
     self._path = unicodise(groups[1]).split(os.path.sep)
Exemplo n.º 4
0
 def __init__(self, string):
     match = self._re.match(string)
     groups = match.groups()
     if groups[0] not in (None, "file://"):
         raise ValueError("%s: not a file:// URI" % string)
     self._path = unicodise(groups[1]).split(os.path.sep)