![Keithley 2651A Reference Manual Download Page 397](http://html1.mh-extra.com/html/keithley/2651a/2651a_reference-manual_661729397.webp)
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 7: Command reference
2651A-901-01 Rev. A / March 2011
7-89
Usage
workingDirectory
= fs.chdir(
path
)
workingDirectory
Returned value containing the working path
path
A string indicating the new working directory path
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
usb1
.
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
Function Yes
Usage
path
= fs.cwd()
path
The absolute path of the current working 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
)
status
Whether or not the given path is a directory (
true
or
false
)
path
The path of the file system entry to test