Is there a standard function that does something akin to an inverse of
'merge-pathnames'? I need to find a pathname of one directory relative
to another:
(split-pathnames "/home/user/projects/my-project"
"projects/my-project")
=> "/home/user"
I can't seem to find a portable way to do this.
--
Regards,
Slava Akhmechet.
+ Slava Akhmechet <·········@gmail.com>:
| Is there a standard function that does something akin to an inverse of
| 'merge-pathnames'? I need to find a pathname of one directory relative
| to another:
|
| (split-pathnames "/home/user/projects/my-project"
| "projects/my-project")
| => "/home/user"
|
| I can't seem to find a portable way to do this.
Have you looked at ENOUGH-NAMESTRING?
--
* Harald Hanche-Olsen <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
when there is no ground whatsoever for supposing it is true.
-- Bertrand Russell