Search notes:

System.IO.Directory (class)

GetCurrentDirectory() returns the current directory as a string.

CreateDirectory

CreateDirectory($dir) creates the directory $dir, if it doesn't already exist, and then returns the object that refers to the new or already existing directory.
This method creates all necessary intermediate directories.
PowerShell
$dir = [System.IO.Directory]::CreateDirectory("$env:temp/a/b/c/d/e/f/g/h")
start-sleep 5
$dir = [System.IO.Directory]::CreateDirectory("$env:temp/a/b/c/d/e/f/g/h")
(new-timeSpan $dir.creationTime (get-date)).Seconds
remove-item $env:temp/a -force -recurse

See also

System.IO.DirectoryInfo

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...', 1745370955, '160.79.110.43', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/IO/Directory/index(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78