Consider that you have a file myfile.txt in c:\paul\java\temp
Now,
File f = new File("c:\paul\java\..\java\temp\myfile.txt");
f.absolutePath() is c:\paul\java\..\java\temp\myfile.txt and
f.canonicalPath() is c:\paul\java\temp\myfile.txt, you can see that there is no "redundancy" in canonical path.
HTH,
Paul.
------------------
Get Certified, Guaranteed!
(Now Revised for the new
Pattern)
www.enthuware.com/jqplus
[This message has been edited by Paul Anil (edited February 13, 2001).]