Section 7: TSP command reference
Series 2600B System SourceMeter® Instrument Reference Manual
7-96
2600BS-901-01 Rev. B / May 2013
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.
Also see
fs.is_file()
(on page 7-96)
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
Details
The file system path may be absolute or relative to the current working system path.
Also see
fs.is_dir()
(on page 7-95)
fs.mkdir()
This function creates a directory at the specified path.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
path
= fs.mkdir(
new
P
ath
)
path
The returned path of the new directory
newpath
Location (path) of where to create the new directory
Details
The directory path may be absolute or relative to the current working directory.
An error is logged to the error queue if the parent folder of the new directory does not exist, or if a file system
entry already exists at the given path.
Also see
fs.rmdir()
(on page 7-97)
Содержание System SourceMeter 2601B
Страница 841: ......