help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [feature] Directory - get parent


From: Stephen Woolerton
Subject: [Help-smalltalk] [feature] Directory - get parent
Date: Mon, 31 Mar 2008 02:44:10 -0700

Issue status update for http://smalltalk.gnu.org/node/202 Post a follow up: http://smalltalk.gnu.org/project/comments/add/202

Project:      GNU Smalltalk
Version:      <none>
Component:    Base classes
Category:     feature requests
Priority:     normal
Assigned to:  Unassigned
Reported by:  swoolerton
Updated by:   swoolerton
Status:       active

There doesn't seem to be a method on Directory to get the parent
directory of the current Directory object. Is there any chance of
having such a method added to Directory.

This worked in any case:-

folderTrail := myPath tokenize: ( Directory pathSeparatorString ). parent := folderTrail last.

It would be quite useful to have a method supplying the "directory
trail" also, with an Array of all the Directories that comprise a path.

Thanks,
Stephen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]