martymac/fpart ? reverse-engineered prompt
Reverse engineered prompt
Build me a small command line tool in C that can crawl a filesystem, sort the files, and split them into balanced partitions by number of files, total size, or a size limit. I want it to work fast on large directory trees, and I’d like a live mode that can react as it finds files instead of waiting for the whole scan to finish.
Also include a companion migration tool that can use those file lists to run transfers in parallel with common tools like rsync, tar, cpio, or pax. It should be able to keep going over SSH targets, start copying while the scan is still running, and support a final sync pass plus basic status and resume behavior.
Make it feel like a practical Unix utility, with clear help text, good man pages, and simple examples. If you need to check current docs or usage ideas, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit