getFile function

Capture a file from a remote target and return the file contents and metadata.

Description

The getFile function captures a file from the remote target and returns a Common Data Model (CDM) FileSystemContent object containing the file contents and metadata.

Function syntax

getFile (path, *os)

Parameters

path
The path of the file to capture
*os
(Optional) The OS handle object

Returns

The functions returns the CDM FileSystemContent object containing the file contents and metadata.

Exceptions

OsException.