os.Path.isfile

The os.Path.isfile method is used to check whether a file is a regular one or not. The syntax of the function is as follows:

 

CALL os.Path.isfile(f_name) RETURNING result

 

where:

·         fname = a string containing the name of the file to check,

·         result  = TRUE if the file is a regular one or FALSE otherwise.