[londonperl] Utility to find date and size of files.

David Cantrell david at cantrell.org.uk
Wed Jan 23 17:47:40 GMT 2008


On Wed, Jan 23, 2008 at 09:01:56AM -0800, David Alban wrote:
> if the windows machine(s) have cygwin installed, you can use the stat
> command from the command line.
> $ stat junk
> ...
> Access: 2008-01-22 17:36:16.781250000 -0800
> Modify: 2008-01-22 17:36:16.781250000 -0800
> Change: 2008-01-22 17:36:16.781250000 -0800

Nope.

cantrelld at c0025:~$ mkdir -p foo/bar
cantrelld at c0025:~$ stat foo
  ...
  Access: 2008-01-23 17:46:48.000000000 +0000
  Modify: 2008-01-23 17:46:48.000000000 +0000
  Change: 2008-01-23 17:46:48.000000000 +0000
cantrelld at c0025:~$ touch foo/bar/baz
cantrelld at c0025:~$ stat foo
  ...
  Access: 2008-01-23 17:46:48.000000000 +0000 \
  Modify: 2008-01-23 17:46:48.000000000 +0000 | Unchanged ...
  Change: 2008-01-23 17:46:48.000000000 +0000 /
cantrelld at c0025:~$ stat foo/bar/baz
  ...
  Access: 2008-01-23 17:46:56.000000000 +0000 \
  Modify: 2008-01-23 17:46:56.000000000 +0000 | ... but the file is new
  Change: 2008-01-23 17:46:56.000000000 +0000 /
cantrelld at c0025:~$ stat foo/bar
  ...
  Access: 2008-01-23 17:46:48.000000000 +0000
  Modify: 2008-01-23 17:46:56.000000000 +0000 \ ... but *this* directory
  Change: 2008-01-23 17:46:56.000000000 +0000 / is updated

Only a file's parent directory gets updated, the parent's parent is left
alone.

-- 
David Cantrell | Minister for Arbitrary Justice

    If you have received this email in error, please add some nutmeg
    and egg whites, whisk, and place in a warm oven for 40 minutes.


More information about the london.pm mailing list