Batch file ops
Batch-Dateioperationen (delete, move, copy, list) mit Glob-Patterns. CLI-Tool fuer effiziente Dateisystem-Operationen. Zero Dependencies.From its SKILL.md
npx -y skills add ellmos-ai/skills --skill batch-file-opsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.7 KB, 585 tokens by cl100k_base, as published. Nobody here has run it
batch_file_ops - Batch-Dateioperationen
CLI-Tool fuer effiziente Batch-Operationen auf Dateien mit Glob-Patterns. Unterstuetzt: delete, move, copy, list. Zero Dependencies (nur Python stdlib).
Aktionen
| Aktion | Beschreibung |
|---|---|
delete | Dateien nach Pattern loeschen |
move | Dateien nach Pattern verschieben |
copy | Dateien nach Pattern kopieren |
list | Dateien nach Pattern auflisten |
CLI Usage
python batch_file_ops.py <aktion> <quelle> [<ziel>] --pattern "<glob>" [--dry-run] [--recursive]
Argumente
| Argument | Beschreibung |
|---|---|
aktion | delete, move, copy oder list |
quelle | Quellordner |
ziel | Zielordner (nur fuer move und copy) |
--pattern, -p | Glob-Pattern (z.B. *.py, TOOLS_*.py) - Standard: * |
--dry-run, -n | Nur anzeigen, nichts aendern |
--recursive, -r | Rekursiv in Unterordnern suchen |
Beispiele
# Alle Python-Dateien in einem Ordner auflisten
python batch_file_ops.py list /pfad/zum/ordner --pattern "*.py"
# Alle .tmp Dateien loeschen (erst Dry-Run!)
python batch_file_ops.py delete /pfad/zum/ordner --pattern "*.tmp" --dry-run
python batch_file_ops.py delete /pfad/zum/ordner --pattern "*.tmp"
# Dateien verschieben
python batch_file_ops.py move /quelle /ziel --pattern "*.txt"
# Dateien kopieren (rekursiv)
python batch_file_ops.py copy /quelle /ziel --pattern "*.md" --recursive
# Pattern-Beispiele
python batch_file_ops.py delete /pfad --pattern "TOOLS_*.py"
python batch_file_ops.py list /pfad --pattern "backup_202?-*"
Hinweise
- Dry-Run zuerst: Bei
deleteundmoveimmer erst--dry-runverwenden - Glob-Patterns: Nutzt Python
pathlib.glob()/pathlib.rglob() - Windows-kompatibel: Automatisches UTF-8 Output-Encoding
- Nur Dateien: Ordner werden uebersprungen (nur Dateien werden bearbeitet)
What ships with it: 8 files
170.4 KB alongside SKILL.md, 1 of them executable
- banner.png146.4 KB
- batch_file_ops.pyruns4.8 KB
- SKILL.en.md2.8 KB
- SKILL.es.md3.1 KB
- SKILL.fr.md3.0 KB
- SKILL.ja.md3.4 KB
- SKILL.ru.md4.1 KB
- SKILL.zh.md2.8 KB