Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 964 Bytes

README.md

File metadata and controls

51 lines (33 loc) · 964 Bytes

dirt

Dirt stands for directory traversal. It is a library and a binary which provides functionality to traverse directories in manys ways.

Working

Dirt binary:

dirt <root_dir> [-c|--ctime] [-m|--mtime] [-a|--atime] [-r|--reverse]

For instance,

dirt $HOME -a

will print contents to the deepest directory sorted by access time of files.

Example:

$ tree
.
├── dir1
│   ├── nested_file1
│   └── nested_file2
├── file1
└── file2

1 directory, 4 files
$ dirt . -a
./dir1/nested_file2
./file2
./file1
./dir1/nested_file1

Above, ./dir1/nested_file2 was accessed most recently so it was on the top.

Helpful links: