[Q] Simplest way to access the file modification date

Hannes Hirzel hirzel at spw.unizh.ch
Fri Mar 15 12:16:39 UTC 2002


Hi

What is the simplest way to access a file modification date given it's
full path name as a String?

The class comment of DirectoryEntry says

> an entry in a directory; a reference to either a file or a directory.

but it is not clear how to create a reference to a file.

And FileDirectory forFileName: fullFileName gives back a directory not a
file reference.

The last time I worked with this I did some workarounds. Are there now
better solutions I'm not aware of?


Regards
Hannes Hirzel




More information about the Squeak-dev mailing list