{"id":218,"date":"2024-09-30T19:49:28","date_gmt":"2024-09-30T18:49:28","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=218"},"modified":"2024-09-30T19:49:28","modified_gmt":"2024-09-30T18:49:28","slug":"mwnci-getwd-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-getwd-function\/","title":{"rendered":"Mwnci getwd() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>getwd()<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The function <i>getwd()<\/i> returns a rooted path name corresponding to the current directory. If the current directory can be reached via multiple paths (due to symbolic links), <i>getwd()<\/i> may return any one of them.<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>println(\"Current directory = \", getwd())\r\n\r\n\r\nCurrent directory = \/home\/eccles\/Desktop\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax getwd() Description The function getwd() returns a rooted path name corresponding to the current directory. If the current directory can be reached via multiple paths (due to symbolic links), getwd() may return any one of them. Example println(&#8220;Current directory = &#8220;, getwd()) Current directory = \/home\/eccles\/Desktop<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-218","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=218"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/218\/revisions"}],"predecessor-version":[{"id":219,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/218\/revisions\/219"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}