BrightSign BrightScript 2 Reference Guide User Manual
Page 37
![background image](https://www.manualsdir.com/files/776464/content/doc037.png)
37
A '*' matches zero or more arbitrary characters.
The character class '[...]' 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 close
bracket. Within the 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 can be negated by specifying '^' as the first character. To
match a literal '^' place it elsewhere within the class.
The characters '?', '*' and '[' lose their special meaning if preceded by a
single '\'. A single '\' can be matched as '\\'.
Example:
l=MatchFiles(".", "*.mpg")
DeleteFile(file As String) As Boolean
Delete the specified file from the current directory.
DeleteDirectory(dir As String) As Boolean
It is only possible to delete an empty directory.
CreateDirectory(dir As String) As Boolean
Creates the specified Directory. Only one directory can be created at a time
FormatDrive(drive As String , fs_type As String) As Boolean
Formats a specified drive using the specified filesystem.