User manual

Section 9: Files Series 3700 System Switch/Multimeter Reference Manual
9-2 3700S-901-01 Rev. C / July 2008
File system navigation
The Lua FS library provides the command set necessary to navigate the file
system and list the available files on a flash drive. The instrument encapsulates
this command set as an fs logical instrument, so that the file system of any
given node is available to the entire TSP-Link
TM
system. For example, the
command node[5].fs.readdir(".") can be used to read the contents of
the current working directory on Node 5.
To allow for future enhancements, the root folder of the USB memory stick has
the absolute path "/usb1/".
NOTE Both slash (/) and backslash (\) are supported as directory separators,
but because backslash is an escape character in Lua, it appears as a
double backslash in this context.
The following Lua FS commands, which support basic navigation and directory
listing, are included for your reference.
fs.chdir() (on page 9-9)
fs.cwd() (on page 9-9)
fs.is_dir() (on page 9-9)
fs.is_file() (on page 9-9)
fs.mkdir() (on page 9-9)
fs.readdir() (on page 9-9)
fs.rmdir() (on page 9-10)
The following Lua FS commands are not supported at this time:
fs.chmod
fs.chown
fs.stat