Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 3: Instrument description
2601B-PULSE-901-01A April 2020 3-29
File system navigation
The 2601B-PULSE can use commands from the Lua fs library to navigate and list files that are
available on a flash drive. These Lua commands are in the fs command group in the instrument.
The fs commands make the file system of any given node available to the entire TSP-Link
®
system.
For example, you can use the command node[5].fs.readdir(".") to read the contents of the
current working directory on node 5.
The root folder of the USB flash drive has the absolute path:
"/usb1/"
You can use either the slash (/) or backslash (\) as a directory separator. However, the backslash is
also used as an escape character, so if you use it as a directory separator, you will generally need to
use a double backslash (\\) when you are creating scripts or sending commands to the instrument.
The instrument supports the following Lua fs commands:
fs.chdir() (on page 11-92)
fs.cwd() (on page 11-93)
fs.is_dir() (on page 11-93)
fs.is_file() (on page 11-94)
fs.mkdir() (on page 11-95)
fs.readdir() (on page 11-95)
fs.rmdir() (on page 11-96)
The following Lua fs commands are not supported:
fs.chmod()
fs.chown()
fs.stat()