An open API service indexing awesome lists of open source software.

https://github.com/luciopaiva/tats

stat multiple files
https://github.com/luciopaiva/tats

Last synced: 23 days ago
JSON representation

stat multiple files

Awesome Lists containing this project

README

          

tats
====

Dumps a list of [stat](https://www.google.com/#q=linux+stat+command)s for all files in a folder, recursively.

## Installation

npm install --global tats

## Usage

tats

Should work fine in Linux and OSX. Won't work in Windows - or maybe it does if you're using cygwin
and have ``stat`` installed, but I haven't tested it.

``tats`` will recursively traverse the root folder looking for files. For each file, it will print a
line containing:

* Last access date, in [Unix Time](http://en.wikipedia.org/wiki/Unix_time)
* Last modified date, in Unix Time
* Last change date, in Unix Time
* Birth date, in Unix Time
* Size, in bytes
* Name

Files will be printed in alphabetical order and their paths will be relative to the root folder.

Each line can be processed by the following regular expression:

/^(\d+)\s(\d+)\s(\d+)\s(\d+)\s(\d+)\s(.+)$/

The only exception is the first printed line, which begins with a ``#`` and serves only to describe the lines that follow.

#

## Example

$ tats /Users/myuser/some_folder/
#
1416698771 1416698771 1416698771 1416697485 6 .git/COMMIT_EDITMSG
1416698807 1416697369 1416697369 1416697369 23 .git/HEAD
1416698807 1416697726 1416697726 1416697726 304 .git/config
1416697369 1416697369 1416697369 1416697369 73 .git/description
1416697369 1416697369 1416697369 1416697369 452 .git/hooks/applypatch-msg.sample
1416697369 1416697369 1416697369 1416697369 896 .git/hooks/commit-msg.sample
1416697369 1416697369 1416697369 1416697369 189 .git/hooks/post-update.sample