getDirectory

Returns the directory 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 directory may be from a directory other than the one the method was called on. E.g. if the call is getFile("../Foo/Directory") the result will be a directory named Directory 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 directory that gets resolved from the path. The returned directory may or may not exist yet

Parameters

path

the path for the directory starting from this directory