listdir - displays the contents of a directory
|
Calling Sequence
|
|
listdir(filename)
|
|
Parameters
|
|
filename
|
-
|
name of the directory to be displayed
|
|
|
|
|
Description
|
|
•
|
The contents of the directory filename are returned as a list. The directories . (current) and .. (directory that is one level higher) are included.
|
•
|
If filename does not exist, listdir generates an error.
|
•
|
If filename is not a directory, listdir generates an error.
|
•
|
See file for information on file names.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
Error, (in listdir) directory does not exist
|
|
|
>
|
|
Error, (in isdir) file or directory does not exist
|
|
|
|
|
Download Help Document
Was this information helpful?