Search notes:

System.IO.DirectoryInfo (class)

System.IO.DirectoryInfo represents a file system directory.
This class is mainly used to copy, move, rename, create and delete directories.
System.IO.DirectoryInfo derives from System.IO.FileSystemInfo.
In PowerShell, this type is returned by get-item if the item is a directory:
PS C:\> (get-item . ).GetType().FullName
System.IO.DirectoryInfo

Creation with relative path

If a System.IO.DirectoyInfo object is created with a relative path, the object internally stores the path to the (potentially inexisting) directory that is constructed from the current directory and the relative path:
PS: 1 C:/Users/rene> [System.IO.DirectoryInfo] $x = '..'
PS: 2 C:/Users/rene> $x.FullName
C:\Users
PS: 3 C:/Users/rene> cd ..
PS: 4 C:/Users> $x.FullName
C:\Users

Properties and methods

Create()
CreateSubdirectory()
Delete()
EnumerateDirectories()
EnumerateFiles()
EnumerateFileSystemInfos()
Exists
GetDirectories()
GetFiles()
GetFileSystemInfos()
MoveTo()
Name
Parent
Root

See also

System.IO.Directory
Compare with System.Management.Automation.PathInfo
The Directory property of the System.IO.FileInfo object.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1758187152, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/IO/DirectoryInfo(85): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78