File.exists() error?

Hi, my problem is simple :

File f =new File("..","myFile");

f.exists();// returns false, whereas the file exists!!!

But...

File f =new File("..","myFile");

File fBis =new File(f.getCanonicalPath());

fBis.exists();// returns true...

Someone has an explanation?

Thanks!

[590 byte] By [ben_06a] at [2007-10-2 10:06:08]
# 1
The API doc for getCanonicalPath has the full explanation, see it. It strips/replaces the \.\ directory entries and can produce different results than your first example.
ChuckBinga at 2007-7-13 1:22:26 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...