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]
- Trimming a string after last instance of / characte... Richard Crawford
- Re: Trimming a string after last instance of /... Ben Doom
- RE: Trimming a string after last instance of /... Stevenson, Christopher
- Re: Trimming a string after last instance ... Richard Crawford
- Re: Trimming a string after last insta... Richard Crawford