This is a mirror of the GitLab repo! https://gitlab.com/Lynnesbian/fif
Go to file
Lynne Megido c92dbbd075
quick hack to work around non-existent document support ;3
2021-02-22 02:35:42 +10:00
.idea cargo update 2021-02-18 22:37:43 +10:00
src quick hack to work around non-existent document support ;3 2021-02-22 02:32:38 +10:00
.gitignore minor tweaks for what should/shouldn't be included in git/crate 2021-02-22 02:02:27 +10:00
Cargo.lock quick hack to work around non-existent document support ;3 2021-02-22 02:35:42 +10:00
Cargo.toml quick hack to work around non-existent document support ;3 2021-02-22 02:35:42 +10:00
Cross.toml windows support! and other stuff 2021-02-20 03:57:36 +10:00
LICENSE better error handling and pattern matching, added license 2021-02-05 15:57:21 +10:00
README.md badges!! 0u0 2021-02-22 02:15:35 +10:00
clippy.sh slightly better readme 2021-02-22 02:08:08 +10:00
rusftmt.toml added rustfmt.toml, ran rustfmt 2021-02-18 19:48:55 +10:00

fif

Crates.io Crates.io

A command-line tool for detecting and optionally correcting files with incorrect extensions.

Installation

cargo install --locked fif

Usage

See fif --help for more.

The basics

The simplest way to use fif looks like this:

fif -E images ~/Pictures

This command will scan all of the files with extensions used by image files (.jpg, .png, etc) in your ~/Pictures directory.

You can also manually specify a set of extensions to use:

fif -e jpeg,jpg,zip,docx ~/Documents

By default, fif will output a bash script that can be used to fix all the files it found with incorrect file extensions. You might find it useful to output this script to a file (rather than to stdout):

fif -E images ~/Pictures > output.sh