Get file full path in java
Posted
by c0mrade
on Stack Overflow
See other posts from Stack Overflow
or by c0mrade
Published on 2010-06-05T20:28:30Z
Indexed on
2010/06/05
20:32 UTC
Read the original article
Hit count: 162
java
When I pass File file
to a method I'm trying to get its full path like file.getAbsolutePath();
I always get the same result no matter which one I use either absolute or canonical path PATH_TO_MY_WORKSPACE/projectName/filename
and it is not there, how can I get exact location of the file?
Thank you
© Stack Overflow or respective owner