Directory

The Directory class exposes routines for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited. Instances of the Directory class can enumerate through themselves, returning file or directory objects as appropriate. Directories can be defined as read-only or hidden.

This section talks about and shows examples for creating, deleting, examining the existence of, enumerating, and getting information for directories. Each of these code examples can be found in a single page of the book’s supporting Web site. To find the examples, go to http://www.usingasp.net/SysIO/WebForm1.aspx.

Ensuring a Usable Directory Name

Before I let users create and delete directories on my server, I must be sure ...

Get Special Edition Using® Microsoft® ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.