Folder Object
A Folder object represents an actual file folder on the current machine. Its properties, collections, and methods are listed in Table 19.8 through Table 19.10, respectively.
Table 19.8. Folder Object Properties
|
Property |
Description |
|---|---|
|
Attributes* |
The operating system attributes for that folder. Depending on the specific folder attribute, this property could be either read/write or read-only. |
|
DateCreated* |
The date the folder was created on the current drive. |
|
DateLastAccessed* |
The date a user last accessed the folder. |
|
DateLastModified* |
The date the folder was last modified. |
|
Drive* |
A string value containing the drive letter of the drive that holds the current folder. |
|
IsRootFolder* |
A Boolean value indicating whether the current Folder object represents the root folder on a specific drive. |
|
Name |
A string value representing the name of the folder. |
|
ParentFolder* |
Returns a reference to the current Folder object's parent folder. |
|
Path |
A string value representing the full physical path of the current folder. |
|
ShortName |
The 8.3 format name of the folder. |
|
ShortPath |
The 8.3 format physical path of the folder. |
|
Size |
The size in bytes of all of the current folder's contents. |
Table 19.9. Folder Object Collections
|
Collection |
Description |
|---|---|
|
Files |
The collection of Files within the current folder only. It does not represent files existing in subfolders of the current folder. |
|
SubFolders |
The collection of subfolders (retrieved through the SubFolders ... |
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