os.Path.extension

Returns the file extension.

Syntax

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

Usage

The function returns the string following the last dot found in fname.

If fname does not have an extension, the function returns NULL.