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
File I/O (on page 9-27)
fs.is_dir() (on page 11-249)
fs.mkdir()
This function creates a directory at the specified path.
Usage
path = fs.mkdir("newPath")
The returned path of the new directory
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
File I/O (on page 9-27)
fs.rmdir() (on page 11-251)
fs.readdir()
This function returns a list of the file system entries in the directory.
Usage
files = fs.readdir("path")
A table containing the names of all the file system entries in the specified
directory