Table of Contents

Name

ftsm - simple file timestamp manager

Synopsis

ftsm [-M] [-d depth] directory [directory]
ftsm [-M]

Description

In its first form ftsm prints one line for every file found recursive in the given directory or directories. The line consist of the file’s mod time as unix timestamp (seconds since epoch), a space and the relative path to the file.
In its second form it recovers file timestamps by reading lines in this format from stdin.
One primary goal of ftsm is saving the timestamps metadata into regular files to save them for backups or versioning software like CVS, subversion, git or mercurial.

Options

-d depth
specify the max depth of directory recursion
-M
Mercurial mode: timestamp and path are swapped

Examples

ftsm src |fgrep -v .svn >.timestamps; svn add .timestamps; svn ci
svn co; ftsm <.timestamps

Caveats

The maximum internal absolute pathname length is 16384 chars.
Errors like "permission denied" are silently ignored.

Author

Frank Bergmann, http://www.tuxad.com


Table of Contents