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 -- www.tudorgirba.com "Every thing has its own flow"
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 -- www.tudorgirba.com<http://www.tudorgirba.com> "Every thing has its own flow"
Tudor Girba-2 wrote
I would like to find the parent of a FileReference. For example:
You're going to like the answer⦠#parent ;-) ----- Cheers, Sean -- View this message in context: http://forum.world.st/finding-the-parent-of-a-filereference-tp4740763p474077... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Ok, this is funny. Thanks. I go to sleep now :) Doru On Fri, Jan 31, 2014 at 10:21 PM, Sean P. DeNigris <sean@clipperadams.com>wrote:
Tudor Girba-2 wrote
I would like to find the parent of a FileReference. For example:
You're going to like the answer... #parent ;-)
----- Cheers, Sean -- View this message in context: http://forum.world.st/finding-the-parent-of-a-filereference-tp4740763p474077... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-- www.tudorgirba.com "Every thing has its own flow"
participants (3)
-
GOUBIER Thierry -
Sean P. DeNigris -
Tudor Girba