Ah I see, uri.getPath() returns the abs_path,not a Path object.   This pull request looks fine to me.