19-64 Return to Section Topics 2600AS-901-01 Rev. B / September 2008
Section 19: Remote Commands Series 2600A System SourceMeter® Instruments Reference Manual
fs.readdir
Function Returns a list of the file system entries in the directory.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage files = fs.readdir(path)
files A table containing the names of all the file system
entries in the specified directory.
path The directory path. This path may be absolute or
relative to the current working directory.
Remarks • This command is non-recursive. For example, entries in subfolders are not returned.
• An error is logged to the error queue if the given path does not exist, or does not represent a
directory.
fs.rmdir
Function Removes a directory from the file system.
TSP-Link
accessibility
This function can be accessed from a remote TSP-Link node.
Usage fs.rmdir(path)
path The path of the directory to remove. 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, or does not represent a
directory, or if the directory is not empty.