mssparkutils.fs.put: Writes the given String out to a file, encoded in UTF-8.

mssparkutils.fs.putR Documentation

Writes the given String out to a file, encoded in UTF-8.

Description

Writes the given String out to a file, encoded in UTF-8.

Usage

mssparkutils.fs.put(file, content, overwrite = FALSE)

Arguments

file

FileSystem URI.

content

Content of file to write, encoded in System default charset.

overwrite

If set to TRUE, the file will be overwritten if it existed already. Note that if overwrite is TRUE and the the write fails, the original file. may still be deleted.

Value

FALSE to mimic the result of file put operation fail.

Examples

mssparkutils.fs.put("/tmp/my-file", "Hello world!", TRUE)


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