
Section 11: TSP command reference
Series 3700A System Switch/Multimeter Reference Manual
11-250
3700AS-901-01 Rev. D/June 2018
Details
The file system path may be absolute or relative to the current working system path.
An error is logged to the error queue if the given path does not exist.
Also see
(on page 9-27)
(on page 11-249)
fs.mkdir()
This function creates a directory at the specified path.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
path
= fs.mkdir("
new
P
ath
")
path
The returned path of the new directory
newpath
Location (path) of where to create the new directory
Details
The directory path may be absolute or relative to the current working directory.
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.
Also see
(on page 9-27)
(on page 11-251)
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