reroot

abstract fun reroot(workingDirectory: FsEntry?): FileSystem

Creates a new root FileSystem on the same backend, with the given workingDirectory and no branch lineage, so that isRoot holds for the result.

Return

the new root file system

Parameters

workingDirectory

new working directory