scratchdir.py 文件源码

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

项目:scratchdir 作者: ahawker 项目源码 文件源码
def setup(self) -> None:
        """
        Setup the scratch dir by creating a temporary directory to become the root of all new temporary directories
        and files created by this instance.

        :return: Nothing
        :rtype: :class:`~NoneType`
        """
        tempfile.tempdir = self.root
        self.wd = self.wd or tempfile.mkdtemp(self.suffix, self.prefix, self.base)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号