What problem does it solve?
This Skill simplifies file and directory management across different operating systems in Clojure, eliminating the need for complex Java interop or platform-specific code.
Core Features & Use Cases
- Cross-Platform File Operations: Perform all common file system tasks (create, copy, move, delete, read, write) seamlessly across Linux, macOS, and Windows.
- Powerful Path Manipulation: Easily join, split, normalize, and relativize paths, ensuring robust and portable file handling.
- Advanced Searching & Filtering: Find files with flexible glob patterns, regular expressions, and custom predicates for precise file discovery.
- Use Case: Automate a daily backup routine by finding all
.log files older than 7 days in a specific directory, compressing them into a timestamped zip archive, and moving the archive to a remote backup location, all with a single, portable script.
Quick Start
Use the babashka.fs skill to find all Clojure files in the current directory and its subdirectories, then list their absolute paths.