/extfix

File Extension Fix Tool - Find and rename files with wrong extensions.

Primary LanguageJavaMIT LicenseMIT

File Extension Fix Tool

Build status Known Vulnerabilities

Find and rename files with wrong extensions. File type detection based on Apache Tika.

Minimum requirements

  • Java SE Development Kit 8

Build

./mvnw clean verify

Usage

Usage: extfix [-hLnRVXy] [-e=<EXT>[,<EXT>...]]... <PATH>
File Extension Fix Tool
      <PATH>        Directory to scan for files with invalid extension.
  -e, --extensions=<EXT>[,<EXT>...]
                    File extensions to filter.
  -h, --help        Show this help message and exit.
  -L, --links       Follow links.
  -n, --dry-run     Do everything except actually rename the files.
  -R, --recursive   Operate on files and directories recursively.
  -V, --version     Print version information and exit.
  -X, --errors      Produce execution error messages.
  -y, --yes         Automatic yes to prompts (run non-interactively).