Hi, Looking up the FileStatus has worked for me before:
fs.getFileStatus(new Path(".")).getPath()
On Tue, Mar 13, 2012 at 2:50 AM, W.P. McNeill <[email protected]> wrote:
>
> Is there an API that returns absolute HDFS paths? So something that would
> turn "/user/myname/top/sub/.." into "/user/myname/top" and "top/sub" into
> "/user/mynname/top/sub"? I've been looking for this functionality where I
> think it would be (e.g. FileSystem or Path) but can't find it.
--
Harsh J
