I'm pretty much new to HDFS and faced the following problem:
org.apache.hadoop.fs.Path should return the full path. Yeah the toString method has barely any documentation but it works like it should!
Perhaps this could work too:
Path p = fs.getFileStatus(new Path(".")).getPath(); URI(p.toString()).getPath();