#rest #directory #keep #file #line #numbers #filenames

yanked delete-rest

A tool to extract image files selected by clients

0.3.0 Mar 19, 2024

#24 in #filenames

MIT license

38KB
561 lines

delete-rest

This is a simple command line utility for selecting files to keep and deleting the rest. It is meant to be used in a directory with a large number of files, that have names differed by a pattern, and are numbered sequentially.

It was primarily written for photos, but it can be used for any type of file, as long as the filenames are numbered sequentially.


lib.rs:

Main library crate

Most of the logic is implemented here, or in the one of the child modules.

Dependencies

~5.5–7.5MB
~140K SLoC