File.getCanonicalPath

File.getCanonicalPath

Class Overview | Class Members | This Package | All Packages

Syntax
public String getCanonicalPath() throws IOException
Description
Returns the canonical form of this File object's pathname. The precise definition of canonical form is system-dependent, but it usually specifies an absolute pathname in which all relative references and references to the current user directory have been completely resolved. The canonical form of a pathname of a nonexistent file may not be defined.

Exceptions
IOException If an I/O error occurs, which is possible because the construction of the canonical path may require filesystem queries.