DirectoryExists – PB Docs 2017

DirectoryExists

PowerScript function

Description

Determines if the named directory exists.

Syntax

Argument

Description

directoryname

String for the name of the directory you want to
verify as existing

Return value

Returns true if the directory exists. Returns false if the directory
does not exist or if you pass a file name in the directoryname
argument.

Usage

You can use this method before attempting to move a file or delete a
directory using other file system methods.

Examples

This example determines if a directory exists before attempting to
move a file to it; otherwise it displays a message box indicating that the
path does not exist:

See also

FileMove

GetCurrentDirectory

RemoveDirectory


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x