
2600AS-901-01 Rev. B / September 2008
Return to
19-63
Series 2600A System SourceMeter® Instruments Reference Manual
Section 19: Remote Commands
fs.cwd
Function
Returns the absolute path of the current working directory.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage
path = fs.cwd()
path
The absolute path of the current working directory.
Remarks
•
This function returns the absolute path of the current working directory.
fs.is_dir
Function
Tests whether the specified path refers to a directory.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage
status = fs.is_dir(path)
status
True
if the given path is a directory, otherwise it is
false
.
path
The path of the file system entry to test. This path may be
absolute or relative to the current working directory.
Remarks
•
An error is logged to the error queue if the given path does not exist.
fs.is_file
Function
Performs a test to determine if the absolute path refers to a file on the USB flash drive.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage
status = fs.is_file(path)
status
True
if the given path is a file, otherwise it is
false
.
path
The path of the file system entry to test.
This path may be absolute or relative to the current
working directory.
Remarks
• An error is logged to the error queue if the given path does not exist.
fs.mkdir
Function
Creates a directory at the specified path.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage
fs.mkdir(path)
path
The path of the new directory. This path may be
absolute or relative to the current working directory.
Remarks
• An error is logged to the error queue if the parent folder of the new directory does not exist, or if
a file system entry already exists at the given path.