May 2010
Intermediate to advanced
1752 pages
41h 17m
English
The first creatable I/O-centric type you will examine is the DirectoryInfo class. This class contains a set of members used for creating, moving, deleting, and enumerating over directories and subdirectories. In addition to the functionality provided by its base class (FileSystemInfo), DirectoryInfo offers the key members in Table 20-3.
| Member | Meaning in Life |
|---|---|
| Create() CreateSubdirectory() | Create a directory (or set of subdirectories) when given a path name. |
| Delete() | Deletes a directory and all its contents. |
| GetDirectories() | Returns an array of DirectoryInfo objects that represent all subdirectories in the current directory. |
| GetFiles() | Retrieves an array of FileInfo ... |