os.Path.isfile

Checks if a file is a regular file.

Syntax

os.Path.isfile(
   fname STRING)
  RETURNING result BOOLEAN
  1. fname is the file name.

Usage

The function returns TRUE if the file is a regular file, FALSE otherwise.