Top  >  Lycia reference  >  Querix 4GL  >  Classes and Methods  >  os.Path methods  >  os.Path.isdirectory()

os.Path.isdirectory

 

os.Path.isdirectory is used to check whether a file is a directory or not. The syntax of the function is as follows:

 

CALL os.Path.isdirectory(f_name) RETURNING result

 

where

f_name = a string containing the file name to check,

result = TRUE if the file is a directory or FALSE otherwise.

 

The os.Path.isDirectory() returns FALSE if specified path is a symbolic link.