os.Path.isDirectory

Checks if a file is a directory.

Syntax

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

Usage

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