local.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:pillar 作者: armadillica 项目源码 文件源码
def __init__(self, name: str) -> None:
        super().__init__(name)

        self._log = logging.getLogger(f'{__name__}.LocalBucket')

        # For local storage, the name is actually a partial path, relative
        # to the local storage root.
        self.root = pathlib.Path(current_app.config['STORAGE_DIR'])
        self.bucket_path = pathlib.PurePosixPath(name[:2]) / name
        self.abspath = self.root / self.bucket_path
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号