Initializes a new instance of the DirectoryInfo class.
Assembly: mscorlib (in mscorlib.dll)
path is null.
The caller does not have the required permission.
path contains invalid characters such as ", <, >, or |.
The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters. The specified path, file name, or both are too long.