listDirectory function

Return a Python list containing the contents of a directory on a remote target.

Description

The listDirectory function returns a Python list of the contents of a directory on a remote target.

Function syntax

listDirectory (path, *os)

Parameters

path
The path of the directory
*os
(Optional) The OS handle object

Returns

The function returns the Python sequence of the contents of the directory.

Exceptions

OsException.