Folders Collection
The Folders collection represents all the folders that exist within the current folder on a particular drive. To retrieve information from subfolders, you must access the Folders collection returned from a call to the SubFolders property of a Folder object. The Folders collection's properties are shown in Table 19.11, while its single method appears in Table 19.12.
Table 19.11. Folders Collection Properties
|
Property |
Description |
|---|---|
|
Count |
The total number of folders in the current collection. |
|
Item |
Returns a reference to a particular folder in the collection. The Item property is similar to the same property of the Application and Session Contents collections. You can retrieve a specific Folder object using its index in the Folders collection or its name. |
Table 19.12. Folders Collection Methods
|
Method |
Description |
|---|---|
|
Add |
Adds a new folder to the Folders collection |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access