{"id":38,"date":"2008-09-03T19:27:10","date_gmt":"2008-09-03T23:27:10","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=38"},"modified":"2012-12-31T19:08:37","modified_gmt":"2013-01-01T00:08:37","slug":"how-to-force-mkdir-to-create-a-directory-if-there-isnt-already-one","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2008\/09\/03\/how-to-force-mkdir-to-create-a-directory-if-there-isnt-already-one\/","title":{"rendered":"How to force mkdir to create a directory if there isn&#8217;t already one"},"content":{"rendered":"<p>If you&#8217;ve ever tried to make a directory if there isn&#8217;t one existing, you probably have bumped into the following error:<br \/>\n<code>mkdir: cannot create directory `<em>the_directory<\/em>': File exists<\/code><\/p>\n<p>To fix this, use this instead to suppress error and create parent directories if needed:<br \/>\n<code><strong>mkdir -p <em>your_directory<\/em><\/strong><\/code><\/p>\n<p>For more information, see <a rel=\"nofollow\" href=\"http:\/\/en.wikipedia.org\/w\/index.php?title=Mkdir&amp;oldid=236121589\">the mkdir page at Wikipedia<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve ever tried to make a directory if there isn&#8217;t one existing, you probably have bumped into the following error: mkdir: cannot create directory `the_directory&#8217;: File exists To fix this, use this instead to suppress error and create parent directories if needed: mkdir -p your_directory For more information, see the mkdir page at Wikipedia.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[183,186,185,184,181,187,182,180,189,188],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/38"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}