Automatically clean up cached downloads

未关闭
#368 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
python

调研方向

首先跟踪 download_dir 和 global_dir 的默认值在哪里定义和读取,并阅读链接的 Windows 管理配置文档。检查 Windows 临时文件清理如何应用于所提议的位置;只有在达成默认位置共识、记录行为,并对最终配置进行测试或验证后,才算完成。

由索引模型根据 Issue 内容生成。

描述

enhancement

Background

According to the documentation, the download_dir directory "is a temporary cache, and can be cleaned up from time to time."

Details

If the download_dir directory is a temporary cache, wouldn't it make sense for the default to be %TEMP%\Python (or something similar), rather than a subdirectory of the global_dir directory?

Why?

  1. Files in %TEMP% should be assumed to be temporary (hence the name), so wouldn't it make sense to put temporary downloads there?

  2. Files in %TEMP% are, I believe, subject to the Windows automatic "clean up temporary files" feature, aren't they? In this way, old downloads would get cleaned up automatically, wouldn't they? (I'm not an expert on this feature, so I may be all wet here.)

I'm new to this project, so I'm sure others will set me straight if I'm way off here...

主要语言
Python
星标
344
派生
74
平均合并
1 天 3 小时
30 天内合并 PR
7

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

python/pymanager 的其他 Issue

查看 python/pymanager 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。