get path directly by function getPath
get path directly by function getPath