directoryExists

directoryExists

Syntax

directoryExists(path_to_directory)

Package

file

Alias


Pkg Usage

dirExists(path_to_directory)

Description

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

Parameters

Parameter name

Type

Required

Description

path_to_directory

String

Yes

Specifies the name of the directory to locate.

Return Type

Boolean (true/false)

Example

if(directoryExists("C:/myDirectory")){ print("The directory exists!"); } else { print("The directory does not exist!"); }

 

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

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.