The fs commands module.
These commands are used in the following models:
DAQ6510, DMM6500, DMM7510, SMU2450, SMU2460, SMU2461, SMU2470, SMU2601B, SMU2602B, SMU2604B,
SMU2606B, SMU2611B, SMU2612B, SMU2614B, SMU2634B, SMU2635B, SMU2636B, SMU2651A, SMU2657A, SS3706A
THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.
Please report an issue if one is found.
Attributes and Functions
- fs.chdir()
- fs.cwd()
- fs.is_dir()
- fs.is_file()
- fs.mkdir()
- fs.readdir()
- fs.rmdir()
Fs
Bases: BaseTSPCmd
The fs command tree.
Properties and methods
.chdir(): The fs.chdir() function.
.cwd(): The fs.cwd() function.
.is_dir(): The fs.is_dir() function.
.is_file(): The fs.is_file() function.
.mkdir(): The fs.mkdir() function.
.readdir(): The fs.readdir() function.
.rmdir(): The fs.rmdir() function.
chdir
Run the fs.chdir() function.
Description
- This function sets the current working directory.
TSP Syntax
| Parameters: |
-
path
(str)
–
A string indicating the new working directory path.
|
| Returns: |
-
str
–
The result of the function call.
|
cwd
Run the fs.cwd() function.
Description
- This function returns the absolute path of the current working directory.
TSP Syntax
| Returns: |
-
str
–
The result of the function call.
|
is_dir
Run the fs.is_dir() function.
Description
- This function tests whether or not the specified path refers to a directory.
TSP Syntax
| Parameters: |
-
path
(str)
–
The path of the file system entry to test.
|
| Returns: |
-
str
–
The result of the function call.
|
is_file
Run the fs.is_file() function.
Description
- Tests whether the specified path refers to a file (as opposed to a directory).
TSP Syntax
| Parameters: |
-
path
(str)
–
The path of the file system entry to test.
|
| Returns: |
-
str
–
The result of the function call.
|
mkdir
Run the fs.mkdir() function.
Description
- This function creates a directory at the specified path.
TSP Syntax
| Parameters: |
-
new_path
(str)
–
Location (path) of where to create the new directory.
|
| Returns: |
-
str
–
The result of the function call.
|
readdir
Run the fs.readdir() function.
Description
- This function returns a list of the file system entries in the directory.
TSP Syntax
| Returns: |
-
str
–
The result of the function call.
|
rmdir
Run the fs.rmdir() function.
Description
- This function removes a directory from the file system.
TSP Syntax
| Parameters: |
-
path
(str)
–
The path of the directory to remove.
|