凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:见平台质量门禁规范
English
When to use
- Disk cleanup: when you need to scan and sort out redundant files produced by backups or downloads in a local directory.
- Deduplication management: finding content-duplicated-but-undeleted files in large project storage (e.g. image libraries, log archives).
- Automated ops: scheduled runs of a config script, using the default report mode to check for redundancy.
Usage
- The core script is
dup_finder.py; run it with a Python interpreter on the PATH. - Key parameters:
-rscans the target folder recursively;--applyautomatically deletes the extras and keeps the first copy. - Example:
python3 dup_finder.py -r -d /path/to/dir --apply.
Workflow
- Confirm the target folder path and make sure you have the needed filesystem permissions.
- Run the scan command, triggering the three-level comparison: size → first-block hash → full SHA1.
- Check the terminal output; confirm the duplicate groups and which first copy is kept.
- To auto-clean, make sure the
--applyflag is present in the parameters so the deletion instruction executes. - Re-scan the target path after the run to verify that the extra copies are gone and no errors occurred.
Evidence & safety statement
- Evidence: TBD (no evaluation / badge link yet; update here once it is produced)
- Version: 1.0.5
- Security: no independent security scan has been performed (TBD); the conclusion is pending and no endorsement is given until it is completed.
中文
何时用
- 磁盘空间清理:当需要扫描并整理本地目录中因备份或下载产生的冗余文件时。
- 文件去重管理:在大型项目存储(如图片、日志库)中发现内容重复但未删除的文件。
- 自动化运维场景:用于配置脚本定期运行,利用默认报告机制检查冗余情况。
用法
- 核心脚本为
dup_finder.py,需使用 Python 解释器或包含在环境路径中执行。 - 关键参数含
-r表示递归扫描目标文件夹,及--apply用于自动删除多余文件保留首个。 - 调用示例:
python3 dup_finder.py -r -d /path/to/dir --apply。
流程
- 确定目标文件夹路径并确保具备相应的文件系统操作权限。
- 执行扫描命令,触发大小、首块哈希及全量 SHA1 的三级比对逻辑。
- 检查终端输出结果,确认重复文件分组及保留的首个文件位置。
- 若需自动清理,可确保脚本参数中包含
--apply标志执行删除指令。 - 运行后再次扫描目标路径以验证多余副本是否已移除且无异常错误。
证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.0.5
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
