跳到正文
cccskills
免费在 GitHub 公开

batch-file-ops

Batch file operations (delete, move, copy, list) with glob patterns. CLI tool for efficient filesystem operations. Zero dependencies.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

<img src="../banner.png" width="100%" alt="batch-file-ops banner">

English — Official English version of batch-file-ops.

batch_file_ops - Batch File Operations (English)

CLI tool for efficient batch operations on files using glob patterns. Supports: delete, move, copy, list. Zero dependencies (Python stdlib only).


Actions

ActionDescription
deleteDelete files matching a pattern
moveMove files matching a pattern
copyCopy files matching a pattern
listList files matching a pattern

CLI Usage

python batch_file_ops.py <action> <source> [<target>] --pattern "<glob>" [--dry-run] [--recursive]

Arguments

ArgumentDescription
actiondelete, move, copy, or list
sourceSource directory
targetTarget directory (only for move and copy)
--pattern, -pGlob pattern (e.g., *.py, TOOLS_*.py) - Default: *
--dry-run, -nPreview only, no changes
--recursive, -rSearch recursively in subdirectories

Examples & Usage

# List all Python files in a directory
python batch_file_ops.py list /path/to/directory --pattern "*.py"

# Delete all .tmp files (dry-run first!)
python batch_file_ops.py delete /path/to/directory --pattern "*.tmp" --dry-run
python batch_file_ops.py delete /path/to/directory --pattern "*.tmp"

# Move files
python batch_file_ops.py move /source /target --pattern "*.txt"

# Copy files (recursive)
python batch_file_ops.py copy /source /target --pattern "*.md" --recursive

# Pattern examples
python batch_file_ops.py delete /path --pattern "TOOLS_*.py"
python batch_file_ops.py list /path --pattern "backup_202?-*"

Notes

  • Dry-run first: Always use --dry-run first with delete and move
  • Glob patterns: Uses Python pathlib.glob() / pathlib.rglob()
  • Windows-compatible: Automatic UTF-8 output encoding
  • Files only: Directories are skipped (only files are processed)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Akademisches Studien- und Fristenmanagement mit Quellenprüfung, Datenschutz und realistischer Handlungsplanung.

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月22日 更新

Aktives Lernen, Erarbeitung von Fachinhalten und strukturierte Erstellung von Synthesen.

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月22日 更新

Prüfungsvorbereitung, Selbsttests, Probeklausuren und systematische Fehleranalyse.

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月22日 更新

Terapia de Aceptación y Compromiso (ACT) según Steven Hayes: modelo Hexaflex con los seis procesos nucleares de la flexibilidad psicológica.

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月22日 更新

Acceptance & Commitment Therapy (ACT) nach Steven Hayes: Hexaflex-Modell mit den sechs Kernprozessen psychischer Flexibilität.

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月22日 更新

スティーブン・ヘイズによるアクセプタンス&コミットメント・セラピー(ACT):心理的柔軟性の6つのコアプロセスを備えたヘキサフレックス・モデル。

中文简介正在准备中。当前显示原文说明。

ellmos-ai/skills82026年10月22日 更新

查看 ellmos-ai 的全部技能

报告此技能的问题