Skip to content
Snippets Groups Projects
Name Last commit Last update
readme.md
run.sh
utils.sh

Bash - Organize Directory

Description

Organizes files in provided input directory. Outputs to provided output directory.

By default, files organize by extension type (See below for disabling type sorting).

File names are incremented when necessary to prevent accidental file overriding.

Parameters

Args

  • First arg (required) - Expected to be the input directory.
  • Second arg (required) - Expected to be the output directory.

Flags

  • -b - Renames files with known "bad" file name prefixes and file extensions.
  • -no-exe - Skips handling of windows exe files.
  • -no-sort - Skips sorting of files into labelled subdirectories.