Home
Login
Register
Forgot Password
About
Blog
Comments
Docsets
API
doc
Johannes Schneider
Name
Johannes Schneider
Member Since
1 June 2005 08:10:25 UTC
Total Comments
1
Absolute / relative path
About
java.io.File
in Docset
J2SE 5.0
Date
1 June 2005 19:58:29 UTC
Be carefull, when you do not exactly know, weather you get an absolute or relative path.
new File( basedir, relativeOrAbsolute)
does *not* work as you might think.
You have to check
new File( relativeOrAbsolute).isAbsolute()
and build your file with or without basedir...
Reply
new File( basedir, relativeOrAbsolute)
does *not* work as you might think.
You have to check
new File( relativeOrAbsolute).isAbsolute()
and build your file with or without basedir...