def __init__(self, engine, **kw): super(FileBase, self).__init__(engine, **kw) if engine.startswith(self.init): engine = url2pathname(engine.split('://')[1]) self._dir = engine # Create directory if not exists(self._dir): self._createdir()
def __init__(self, engine, **kw): super(ClientStore, self).__init__(engine, **kw) if engine.startswith(self.init): self._engine = url2pathname(engine.split('://')[1])
def __init__(self, engine, **kw): super(PathBase, self).__init__(engine, **kw) if engine.startswith(self.init): self._engine = url2pathname(engine.split('://')[1])