BrightSign Object Reference Manual (FW 5.1) User Manual
Page 27

19
o […]-- Matches any single character specified within the brackets. The closing bracket is treated as a
member of the character class if it immediately follows the opening bracket (i.e. "[]]" matches a single closed
bracket). Within this class, "-" can be used to specify a range unless it is the first or last character (e.g. "[A-
Cf-h"] is equivalent to "[ABCfgh]"). A character class may be negated by specifying "^" as the first character.
To match a literal of this character, place it elsewhere in the class.
Note: The special characters "?", "*", and "[" lose their function if preceded by a single "\", and a single "\" can
be matched using "\\".
•
LCase(target_string As String) As String: Converts the specified string to all lower case.
•
UCase(target_string As String) As String: Converts the specified string to all upper case.
•
DeleteFile(file_path As String) As Boolean: Deletes the file at the specified file path. This method
returns False if the delete operation fails or if the file does not exist.
•
DeleteDirectory(diretory As String) As Boolean: Deletes the specified directory. This method will
recursively delete any files and directories that are necessary for removing the specified directory. This method
returns False if it fails to delete the directory, but it may still delete some of the nested files or directories.
•
CreateDirectory(directory As String) As Boolean: Creates the specified directory. Only one directory
can be created at a time. This method returns True upon success and False upon failure.
•
RebootSystem(): Causes a soft reboot.
•
ShutdownSystem()
•
UpTime(dummy As Integer) As Float: Returns the uptime of the system (in seconds) since the last reboot.
•
FormatDrive(drive As String, fs_type As String) As Boolean: Formats the specified drive using
one of the file systems listed below. This function returns True upon success and False upon failure:
o vfat (DOS/Windows file system): Readable and writable by Windows, Linux, and MacOS.
o ext2 (Linux file system): Writable by Linux and readable by Windows and MacOS with additional software.
o ext3 (Linux file system): Writable by Linux and readable by Windows and MacOS with additional software.
This file system uses journaling for additional reliability.
•
EjectDrive(drive As String) As Boolean: Ejects the specified drive (e.g. "SD:") and returns True if
successful. If the script is currently accessing files from the specified drive, the ejection process will fail.