copyTo

suspend fun Entry.copyTo(parent: DirectoryEntry, newName: String? = null): Result<Entry>(source)

Copy given file or directory to a new location.

Parameters

parent

new location parent directory entry

newName

new location name