mssparkutils.fs.head: Returns up to the first 'maxBytes' bytes of the given file as...

mssparkutils.fs.headR Documentation

Returns up to the first 'maxBytes' bytes of the given file as a String encoded in UTF-8.

Description

Returns up to the first 'maxBytes' bytes of the given file as a String encoded in UTF-8.

Usage

mssparkutils.fs.head(file, maxBytes = 65535)

Arguments

file

FileSystem URI

maxBytes

Maximum number of bytes to read

Value

Empty string to mimic the returned content of file.

Examples

mssparkutils.fs.head("/tmp/my-folder/my-file")
mssparkutils.fs.head("/tmp/my-folder/my-file", 1000)


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