branch

abstract fun branch(workingDirectory: File?): FileSystem

Creates a new FileSystem branched from this one, with the given workingDirectory.

The root of the new file system is set to this file system if it has no root, or to this file system's root otherwise.

Return

the branched file system

Parameters

workingDirectory

new working directory