newFile

abstract fun newFile(parent: File, childPath: String): File

Instantiates a File object for the given child path in the given parent directory.

Return

a File object.

Parameters

parent
a File object describing the parent directory.
childPath
a (relative) file name.

abstract fun newFile(parentPath: String, childPath: String): File

Instantiates a File object for the given child path in the given parent directory.

Return

a File object.

Parameters

parentPath
a fully qualified parent directory.
childPath
a (relative) file name.

abstract fun newFile(path: String): File

Instantiates a File object for the given path.

Return

a File object.

Parameters

path
a fully qualified path.