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.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
path
= fs.cwd()
path
The absolute path of the current working directory
Also see
(on page 9-27)
fs.is_dir()
This function tests whether or not the specified path refers to a directory.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
status
= fs.is_dir("
path
")
status
Whether or not the given path is a directory (
true
or
false
)
path
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
(on page 9-27)
(on page 11-249)
fs.is_file()
Tests whether the specified path refers to a file (as opposed to a directory).
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
status
= fs.is_file("
path
")
status
true
if the given path is a file; otherwise,
false
path
The path of the file system entry to test