Info |
---|
|
This routine is available starting with SIL Engineā¢ 1.0. |
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | directoryExists(path_to_directory) | Package | file | Alias | |
...
...
Description
Excerpt |
---|
|
Returns "true" if the directory exists and "false" otherwise. |
Returns "true" if the directory exists and "false" otherwise.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
path_to_directory | |
...
String | Yes | Specifies the name of the directory to locate. |
|
Return
...
Type
boolean Boolean (true/false)
Example
Code Block |
---|
if(directoryExists("C:/myDirectory")){
print("The directory exists!");
} else {
print("The directory does not exist!");
}
|
Notes
Note |
---|
It is recommended that you use forward slashes ( / ) for file paths. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "file_routines"routine" and space = currentSpace ( ) |
---|
labels | filearray_routines |
---|
|