Learn R Programming

notebookutils (version 1.5.3)

mssparkutils.fs.cp: Copies a file or directory, possibly across FileSystems.

Description

Copies a file or directory, possibly across FileSystems.

Usage

mssparkutils.fs.cp(from, to, recurse = FALSE)

Value

FALSE to mimic the result if file or directory from fail to copy to to.

Arguments

from

FileSystem URI of the source file or directory

to

FileSystem URI of the destination file or directory

recurse

if TRUE, all files and directories will be recursively copied

Examples

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

Run the code above in your browser using DataLab