fs

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

chdir(path: str) -> str

Run the fs.chdir() function.

Description
  • This function sets the current working directory.
TSP Syntax
- fs.chdir()
Parameters:
  • path (str) –

    A string indicating the new working directory path.

Returns:
  • str

    The result of the function call.

Raises:

cwd

cwd() -> str

Run the fs.cwd() function.

Description
  • This function returns the absolute path of the current working directory.
TSP Syntax
- fs.cwd()
Returns:
  • str

    The result of the function call.

Raises:

is_dir

is_dir(path: str) -> str

Run the fs.is_dir() function.

Description
  • This function tests whether or not the specified path refers to a directory.
TSP Syntax
- fs.is_dir()
Parameters:
  • path (str) –

    The path of the file system entry to test.

Returns:
  • str

    The result of the function call.

Raises:

is_file

is_file(path: str) -> str

Run the fs.is_file() function.

Description
  • Tests whether the specified path refers to a file (as opposed to a directory).
TSP Syntax
- fs.is_file()
Parameters:
  • path (str) –

    The path of the file system entry to test.

Returns:
  • str

    The result of the function call.

Raises:

mkdir

mkdir(new_path: str) -> str

Run the fs.mkdir() function.

Description
  • This function creates a directory at the specified path.
TSP Syntax
- fs.mkdir()
Parameters:
  • new_path (str) –

    Location (path) of where to create the new directory.

Returns:
  • str

    The result of the function call.

Raises:

readdir

readdir(path: str) -> str

Run the fs.readdir() function.

Description
  • This function returns a list of the file system entries in the directory.
TSP Syntax
- fs.readdir()
Parameters:
  • path (str) –

    The directory path.

Returns:
  • str

    The result of the function call.

Raises:

rmdir

rmdir(path: str) -> None

Run the fs.rmdir() function.

Description
  • This function removes a directory from the file system.
TSP Syntax
- fs.rmdir()
Parameters:
  • path (str) –

    The path of the directory to remove.

Raises: