Name
file_dirlist — Returns list with content of file system directory
Synopsis
file_dirlist
(
|
in path varchar , |
in what integer , | |
out
error
any
) ; |
Description
This function requires dba privileges.
This returns the list of the contents of a given file system directory.
Parameters
path
string containing valid path to directory in file system
what
flag designating what to return in the list: 0 - directories, 1 - regular files, 2 - symbolic links, 3 - all entries
error
A variable for returning error messages. If supplied, errors are not signalled.
Return Types
an array of strings containing directory entries.
Errors
Table 24.32. Errors signalled by
SQLState | Error Code | Error Text | Description |
---|---|---|---|
42000 | FA016 | Access to %s is denied due to access control in ini file | |
39000 | FA017 | Path string is too long. | |
42000 | FA018 | Access to %s is denied due to access control in ini file | |
39000 | FA019 | Path string is too long. |