Stevenson, Christopher wrote:

>>>Given a string that contains a directory name (e.g.,
>>>"/var/www/html/files/classes/admin"), what is the best
>>>way to trim all of the characters off the last instance
>>>of the / character?
>
>
>>listdeleteat(string, listlen(string, '/'), '/');
>
>
> Or
>
> getDirectoryFromPath(string)

That's very close to what I need.  I need to ascend one directory level
and then descend into a different directory.

From:

/directory/subdirectory/path1

to:

/directory/subdirectory/path2

--
Richard S. Crawford
Programmer III,
UC Davis Extension Distance Learning Group (http://unexdlc.ucdavis.edu)
(916)327-7793 / [EMAIL PROTECTED]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to