예제 #1
0
파일: ossuri.py 프로젝트: mycolorway/OSSCMD
 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])
예제 #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])
예제 #3
0
파일: ossuri.py 프로젝트: mycolorway/OSSCMD
 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)
예제 #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)