9. Directory class
Introduction
This class is able to look for directories content. A directory object has the following attributes and methods:
Constructor
Directory |
file: string |
Creates a directory object bound to the specified path. |
Methods
length |
returns int |
Indicates the number of files in the directory. |
item |
return string |
Specifies the name of the file content. |