{"id":3146,"date":"2016-02-10T13:13:44","date_gmt":"2016-02-10T13:13:44","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=3146"},"modified":"2016-02-10T13:13:44","modified_gmt":"2016-02-10T13:13:44","slug":"get-current-directory-in-scala","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/get-current-directory-in-scala\/","title":{"rendered":"Get current directory in scala"},"content":{"rendered":"<p>This just uses one of the Java utilities to get the current directory (this property is where Java was run from). <\/p>\n<pre lang=\"scala\">\ndef pwd = System.getProperty(\"user.dir\")\n<\/pre>\n<p>Example:<\/p>\n<pre>\nscala> println(pwd)\nD:\\Program Files (x86)\\Git\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This just uses one of the Java utilities to get the current directory (this property is where Java was run from). def pwd = System.getProperty(&#8220;user.dir&#8221;) Example: scala> println(pwd) D:\\Program Files (x86)\\Git<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[300,480,486],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3146"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=3146"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3146\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=3146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=3146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=3146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}