Modification date of a file?

Bert Freudenberg bert at isgnw.CS.Uni-Magdeburg.De
Fri Jan 14 15:25:38 UTC 2000


On Fri, 14 Jan 2000, Mike Rutenberg wrote:

> Is there a simple way to query the creation/modification time of a
> given named file?  I must be missing something, but I can't find it.

You have to look for the directory entry:

	f := 'Squeak2.7.changes'.
	((FileDirectory forFileName: f) entryAt: f) creationTime

gives you the date and time in seconds to be used with Date/Time
fromSeconds:.

  -Bert-





More information about the Squeak-dev mailing list