Tektronix Keithley 2651A Reference Manual page 462

High power system sourcemeter instrument
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
fs.is_file()
Tests whether the specified path refers to a file (as opposed to a directory).
Type
TSP-Link accessible
Function
Yes
Usage
status = fs.is_file("path")
status
path
Details
The file system path may be absolute or relative to the current working system path.
Example
rootDirectory = "/usb1/"
print("Is file: ", fs.is_file(rootDirectory))
Insert a USB flash drive into the front panel of the instrument.
Set rootDirectory to be the USB port.
Check to see if rootDirectory is a file. Because rootDirectory was set up as a directory, the return is
false.
Also see
fs.is_dir()
(on page 7-116)
2651A-901-01 Rev. C October 2021
Affected by
Where saved
true if the given path is a file; otherwise, false
The path of the file system entry to test
Section 7: TSP command reference
Default value
7-117

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Keithley 2651A and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents