get File

public abstract File getFile(String path)

Returns the file with the given path resolved from this directory. The path may be a single element which is the files name or a path separated by /.

The path may contain the current or parent directory indicated with . and ... In that case the file may be from a directory other than the one the method was called on. E.g. if the call is getFile("../Foo/File") the result will be a file named File in the directory Foo next to this one.

If the path starts with / the path will be resolved from the root of the filesystem this directory belongs to

Return

the file that gets resolved from the path. The returned file may or may not exist yet

Parameters

path

the path for the file starting from this directory