notebookutils.fs.mv {notebookutils}R Documentation

Moves a file or directory, possibly across FileSystems. For intra-FileSystem, it is implemented by hadoop fs rename operation. For inter-FileSystem, This is implemented as a copy followed by delete.

Description

Moves a file or directory, possibly across FileSystems. For intra-FileSystem, it is implemented by hadoop fs rename operation. For inter-FileSystem, This is implemented as a copy followed by delete.

Usage

notebookutils.fs.mv(from, to, createPath = FALSE, overwrite = FALSE)

Arguments

from

FileSystem URI of the source file or directory.

to

FileSystem URI of the destination file or directory.

createPath

if TRUE, will firstly create the parent dir if not exists before move op.

overwrite

if TRUE, will overwrite the destination folder if exists.

Value

FALSE to mimic the result of mv operation fail.

Examples

notebookutils.fs.mv("/tmp/my-folder/", "adls:/xxx/tmp/b")


[Package notebookutils version 1.5.3 Index]