Akademisches Studien- und Fristenmanagement mit Quellenprüfung, Datenschutz und realistischer Handlungsplanung.
The English summary is being prepared. Showing the original description.
基于 glob 通配符模式的批量文件操作(删除、移动、复制、列表)。用于高效文件系统操作的 CLI 工具。零依赖。
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
中文 —
batch-file-ops官方中文版本。
用于使用 glob 通配符模式对文件执行高效批量操作的 CLI 工具。 支持:delete、move、copy、list。零依赖(仅使用 Python 标准库)。
| 操作 | 说明 |
|---|---|
delete | 删除符合模式的文件 |
move | 移动符合模式的文件 |
copy | 复制符合模式的文件 |
list | 列出符合模式的文件 |
python batch_file_ops.py <action> <source> [<target>] --pattern "<glob>" [--dry-run] [--recursive]
| 参数 | 说明 |
|---|---|
action | delete、move、copy 或 list |
source | 源目录 |
target | 目标目录(仅适用于 move 和 copy) |
--pattern, -p | Glob 通配符模式(例如 *.py、TOOLS_*.py)- 默认值:* |
--dry-run, -n | 仅预览,不应用实际更改 |
--recursive, -r | 在子目录中递归搜索 |
# 列出目录中的所有 Python 文件
python batch_file_ops.py list /path/to/directory --pattern "*.py"
# 删除所有 .tmp 文件(先使用 dry-run 预览!)
python batch_file_ops.py delete /path/to/directory --pattern "*.tmp" --dry-run
python batch_file_ops.py delete /path/to/directory --pattern "*.tmp"
# 移动文件
python batch_file_ops.py move /source /target --pattern "*.txt"
# 复制文件(递归)
python batch_file_ops.py copy /source /target --pattern "*.md" --recursive
# 模式示例
python batch_file_ops.py delete /path --pattern "TOOLS_*.py"
python batch_file_ops.py list /path --pattern "backup_202?-*"
delete 和 move 时,务必先使用 --dry-run 预览pathlib.glob() / pathlib.rglob()No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Akademisches Studien- und Fristenmanagement mit Quellenprüfung, Datenschutz und realistischer Handlungsplanung.
The English summary is being prepared. Showing the original description.
Aktives Lernen, Erarbeitung von Fachinhalten und strukturierte Erstellung von Synthesen.
The English summary is being prepared. Showing the original description.
Prüfungsvorbereitung, Selbsttests, Probeklausuren und systematische Fehleranalyse.
The English summary is being prepared. Showing the original description.
Acceptance & Commitment Therapy (ACT) according to Steven Hayes: Hexaflex model with the six core processes of psychological flexibility.
The English summary is being prepared. Showing the original description.
Терапия принятия и ответственности (ACT) Стивенса Хейса: модель Гексафлекс с шестью ключевыми процессами психологической гибкости.
The English summary is being prepared. Showing the original description.
Acceptance & Commitment Therapy (ACT) nach Steven Hayes: Hexaflex-Modell mit den sechs Kernprozessen psychischer Flexibilität.
The English summary is being prepared. Showing the original description.