mssparkutils.fs.mv: Moves a file or directory, possibly across FileSystems. For...

mssparkutils.fs.mvR 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

mssparkutils.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

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


notebookutils documentation built on May 29, 2024, 12:08 p.m.