Added Path:getDir

* Added Path:getDir
* Fixed String:new