On 5/21/07, sebb <[EMAIL PROTECTED]> wrote:
Are there any plans to implement a filename relativiser?
i.e., given an absolute directory and absolute filename it would
return a relative filename.
e.g. (in Unix syntax):
/a/b/c and /a/b/c/d/e.txt => d/e.txt
and optionally:
/a/b/c/f and /a/b/c/d/e.txt => ../d/e.txt
It does not look particularly difficult to do, but it does not seem
trivial either, so it might be a useful addition to Commons IO...
+1 sounds like a good candidate for FilenameUtils - commons JCI has a
"relative" method in its ConverstionUtils class
http://tinyurl.com/2kj6ul
Niall
S.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]