os.Path.ishidden

Checks if a file is hidden.

Syntax

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

Usage

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

For example, on UNIX™, files starting with a dot in the file name are considered as hidden when using the ls command.