def _as_zip_path(self, path):
path = str(pathlib.PurePosixPath(path))
# zip files don't work well with '.' which is the identity of a Path
# obj, so just convert to empty string which is basically the identity
# of a zip's entry
if path == '.':
path = ''
return path
评论列表
文章目录