Lecture overview -- Keyboard shortcut: 'u'  Previous page: Members in class FileInfo -- Keyboard shortcut: 'p'  Next page: Members in class DirectoryInfo -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Input and Output Classes - slide 28 : 40

The Directory and DirectoryInfo classes

The class DirectoryInfo represents a directory

The class Directory holds static methods for creating, moving, and enumerating through directories

directory-info.cs
A demonstration of the DirectoryInfo class.
output-directory-info
Output from the DirectoryInfo demo program.
directory.cs
A demonstration of the Directory class - similar to the DirectoryInfo demo program.
output-directory
Output from the Directory demo program.
As for File and FileInfo, there is substantial overlap between the classes Directory and DirectoryInfo