Try

aFileReference parent

Thierry

De : Pharo-users [pharo-users-bounces@lists.pharo.org] de la part de Tudor Girba [tudor@tudorgirba.com]
Date d'envoi : vendredi 31 janvier 2014 21:48
� : Any question about pharo is welcome
Objet : [Pharo-users] finding the parent of a filereference

Hi,

I would like to find the parent of a FileReference. For example:

/a/b/c ==> /a/b

I could not find any straightforward way. The one I found was to go via the path and do:

aFileReference path withParents reverse second asFileReference

Is there no other way?

Cheers,
Doru

--

"Every thing has its own flow"