def exists(self, name):
name = self._normalize_name(name)
try:
self.bucket.stat_object(name)
except Error, e:
if e[0] == 404:
return False
raise
return True
#def listdir(self, path):
# path = self._normalize_name(path)
# try:
# result = self.bucket.list(path=path)
# return [i.name for i in result]
# except Error, e:
# raise IOError('Storage Error: %s' % e.args)
backend.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录