Learn R Programming

notebookutils (version 1.5.3)

mssparkutils.fs.mv: 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

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

Value

FALSE to mimic the result of mv operation fail.

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.

Examples

Run this code
mssparkutils.fs.mv("/tmp/my-folder/", "adls:/xxx/tmp/b")

Run the code above in your browser using DataLab