File Handling

ls()
ls(directory)
ls(webnfs URL)

ls() displays the files in a directory.

chdir(dir)

chdir() changes the current directory.

pwd()

pwd() displays the current directory.

cat(file_or_file_list [, OutputStream | Writer ])

cat() displays the content of file.

zcat(file or webnfsURL)
zcat(file or webnfsURL, outputStream)

zcat() decompress the content of file and displays. When outputStream is specified, data is written into the stream.

gzip(srcFileName_or_inputStream)
gzip(srcFileName_or_inputStream, dstFileName_or_outputStream)

gzip() compress the content of srcFileName_or_inputStream. When dstFileName_or_outputStream is specified, data is written into the stream.


Back