I took the time to review FileSystemDirectoryEntry.

UNIX has 3 types of timestamps

-The access time is the last time when the content was accessed.
-The modification time is last time when the content was modified.
-The change time is the last time when the metadata was modified.

FileSystemDirectoryEntry>>creationTime
This is wrong because there is no such thing as creation time in UNIX.

I checked in Linux chmod'ing an empty file and #creationTime displays the
chmod "change time".
Then added content to the file

echo prueba >> test1.txt

And both "creation" and "modification" instance variables were updated.

I couldn't find #accessTime method to get the last timestamp of last access.


Cheers,

Hernán


2017-06-18 10:43 GMT-03:00 Stephane Ducasse <stepharo.s...@gmail.com>:

> I would love that too :).
> Can you tell us what is missing from the file properties?
>
>
>
> On Sun, Jun 18, 2017 at 4:59 AM, Hernán Morales Durand
> <hernan.mora...@gmail.com> wrote:
> > I would like to find files in Pharo like the UNIX find command:
> >
> > find . -iname "*.txt" -type f -print
> >
> > find . \( -iname "*.txt" -o -iname "*.csv" \) -print
> >
> > find . -maxdepth 2 -name "example*"  -type f -print
> >
> > find . -type f -atime -7 -size +2M -perm 644 -print
> >
> > Do we have some package on top of FileSystem to make complex find
> searches?
> >
> > Hernán
> >
>
>

Reply via email to