GNO-Extras/bobbi
2020-02-09 01:10:03 -05:00
..
Makefile Added Makefile 2020-02-06 21:15:28 -05:00
README.md Fix formatting 2020-02-06 21:08:13 -05:00
sortdir.c#b00008 Added support for GSOS two-fork files 2020-02-09 01:10:03 -05:00

** THIS IS ALPHA-QUALITY CODE **
** USE AT YOUR OWN RISK!      **

usage: sortdir [-s xxx] [-rwv] path

  Options: -s xxx  Directory sort options
           -w      Enable writing to disk
           -v      Verbose output
           -h      This help

Directory sort options xxx, is a list of fields on which to
sort. The sort options are processed left-to-right.
  n  sort by filename ascending
  N  sort by filename descending
  t  sort by type ascending
  T  sort by type descending
  d  sort directories to top
  D  sort directories to bottom

e.g.: sortdir -w -s nd .
Will sort the current directory first by name (ascending),
then sort directories to the top, and will write the sorted
directory to disk.