Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAvailability

This routine is available starting with SIL Engineā„¢ 1.0.

Syntax

...

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

directoryExists(path_to_directory)

Package

file

Alias

Pkg Usage

dirExists(path_to_directory)

Description

Excerpt
hiddentrue
Returns "true" if the directory exists and "false" otherwise.

Returns "true" if the directory exists and "false" otherwise.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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!");
}

...

Note

It is recommended that you use forward slashes ( / ) for file paths.

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "file_routines"routine" and space = currentSpace ( )
labelsfilearray_routines