Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-249
fs.cwd()
This function returns the absolute path of the current working directory.
The absolute path of the current working directory
Also see
File I/O (on page 9-27)
fs.is_dir()
This function tests whether or not the specified path refers to a directory.
Usage
status = fs.is_dir("path")
Whether or not the given path is a directory (true or false)
The path of the file system entry to test
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_file() (on page 11-249)
fs.is_file()
Tests whether the specified path refers to a file (as opposed to a directory).
Usage
status = fs.is_file("path")
true if the given path is a file; otherwise, false
The path of the file system entry to test