User manual

Series 3700 System Switch/Multimeter Reference Manual Section 9: Files
3700S-901-01 Rev. C / July 2008 9-9
Command table entries
fs.chdir()
Function
Sets the current working directory.
Usage
fs.chdir(path)
path: The new working directory path (absolute or relative).
Remarks
An error is logged to the error queue if the given path does not exist.
fs.cwd()
Function
Returns the absolute path of the current working directory.
Usage
path = fs.cwd()
path: The absolute path of the current working directory.
fs.is_dir()
Function
Tests whether the specified path refers to a directory.
Usage
status = fs.is_dir(path)
status: True if the given path is a directory; otherwise, false.
path: The file system entry path (absolute or relative) to test.
Remarks
An error is logged to the error queue if the given path does not exist.
fs.is_file()
Function
Tests whether the specified path refers to a file (as opposed to a directory).
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. This path may be absolute or relative to
the current working directory.
Remarks
An error is logged to the error queue if the given path does not exist.
fs.mkdir()
Function
Creates a directory at the specified path.
Usage
fs.mkdir(path)
path: The path of the new directory. This path may be absolute or relative to the
current working directory.
Remarks
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.