7: TSP command reference Series 2600B System SourceMeter® Instrument
7-104 2600BS-901-01 Rev. C / August 2016
Details
The new working directory path may be absolute or relative to the current working directory.
An error is logged to the error queue if the given path does not exist.
Example
testPath = fs.chdir("/usb1/")
Change the working directory to
.
Also see
None
fs.cwd()
This function returns the absolute path of the current working directory.
Type TSP-Link accessible Affected by Where saved Default value
Usage
path = fs.cwd()
The absolute path of the current directory
Also see
None
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)
Whether or not the given path is a directory (
or
)
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.
Also see
fs.is_file() (on page 7-105)