
Section 7: TSP command reference
Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-96
2657A-901-01 Rev. B/December 2012
fs.readdir()
This function returns a list of the file system entries in the directory.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
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
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
Function Yes
Usage
fs.rmdir(
path
)
path
The path of the directory to remove
Details
This path may be absolute or relative to the present current 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
(on page 7-95)
Summary of Contents for 2657A
Page 3: ......