Relative paths [was: Path transformation]
- From: "mal content" <artifact.one@xxxxxxxxxxxxxx>
- Date: Mon, 21 Aug 2006 16:05:33 +0100
Thanks to all who helped point me towards realpath().
I have another favour to ask: Is there a function that can
take two absolute paths and generate a relative path, from
source to destination?
/usr/bin/false /bin
Becomes:
../../bin
/bin /usr/bin/false
Becomes:
../usr/bin/false
thanks,
MC
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Relative paths [was: Path transformation]
- From: Peter Jeremy
- Re: Relative paths [was: Path transformation]
- Prev by Date: [SoC] Jail Resource Limits
- Next by Date: style(9)-like guide for man pages
- Previous by thread: [SoC] Jail Resource Limits
- Next by thread: Re: Relative paths [was: Path transformation]
- Index(es):