Package java.io
Class File

Public Method getParent

String getParent()

_INSERT_METHOD_SIGNATURE_HERE_

Description:

This method returns the pathname string of this abstract pathname's parent, or null if this pathname does not name a parent directory.

Example

   File file = new File("test/directory");
   Logger.log("get parent: " + file.getParent());

The example above returns the directory path from the parent directory.