Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-107
fs.rmdir()
This function removes a directory from the file system.
The path of the directory to remove
Details
This path may be absolute or relative to the present working directory.
An error is logged to the error queue if the given path does not exist or does not represent a directory.
An error is also logged if the directory is not empty.
Example
rootDirectory = "/usb1/"
tempDirectoryName = "temp"
if fs.is_dir(rootDirectory..tempDirectoryName) == false then
fs.mkdir(rootDirectory..tempDirectoryName)
end
fs.rmdir(rootDirectory..tempDirectoryName)
Insert a USB flash drive into the front panel of the instrument.
Set rootDirectory to be the USB port.
Set tempDirectoryName to be equivalent to temp.
Check to see if tempDirectoryName exists.
If it does not exist, create a directory named temp.
Remove the directory.
Also see
fs.mkdir() (on page 9-105)
gettimezone()
This function retrieves the local time zone.
Usage
timeZone = gettimezone()
The local time zone of the instrument