home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / shell / 4844 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.2 KB  |  34 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!peora!tarpit!tous!bilver!bill
  3. From: bill@bilver.uucp (Bill Vermillion)
  4. Subject: Re: Last modification time for a directory -- How?
  5. Organization: W. J. Vermillion - Winter Park, FL
  6. Date: Mon, 23 Nov 1992 14:59:57 GMT
  7. Message-ID: <1992Nov23.145957.4192@bilver.uucp>
  8. References: <1epmvvINN1b1@agate.berkeley.edu>
  9. Lines: 23
  10.  
  11. In article <1epmvvINN1b1@agate.berkeley.edu> ilan343@violet.berkeley.edu (Geraldo Veiga) writes:
  12. >A question:
  13.  
  14. >How do I find the last modification time for a directory, meaning what
  15. >was the last modification time for any file under the directory.
  16.  
  17. The time any file was modified is NOT part of the directory,
  18. and the directory was not modifed.   The only place you will
  19. find any modifications (other than the file itself) are in the
  20. inodes of the associated files.  Unless you rename the file or
  21. mv it, there will be no indication in the directory.
  22.  
  23. You will have to search for last modification time of the
  24. individual files, find the latest, and then check what
  25. directory they are in.
  26.  
  27.  
  28.  
  29. -- 
  30. Bill Vermillion - bill@bilver.oau.org  bill.vermillion@oau.org
  31.                 - bill@bilver.uucp 
  32.                 - ..!{peora|tous|tarpit}!bilver!bill
  33.  
  34.