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.