7: TSP command reference Series 2600B System SourceMeter® Instrument
7-106 2600BS-901-01 Rev. C / August 2016
Usage
files = fs.readdir(path)
A table containing the names of all the file system entries in the specified
directory
Details
The directory path may be absolute or relative to the current working directory.
This command is nonrecursive. 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.
Also see
None
fs.rmdir()
This function removes a directory from the file system.
Type TSP-Link accessible Affected by Where saved Default value
Usage
fs.rmdir(path)
The path of the directory to remove
Details
This path may be absolute or relative to the current working directory.
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.
Also see
fs.mkdir() (on page 7-105)