|
|
-
Re: FileStatus.getPathHarsh J 2013-03-06, 05:39
The FileStatus is a container of metadata for a specific path, and
hence carries the Path object the rest of the details are for. What do you exactly mean by "has no defined contract"? If you want a qualified path (for a specific FS), then doing "path.makeQualified(…)" is always the right way. On Tue, Mar 5, 2013 at 11:31 PM, Jay Vyas <[EMAIL PROTECTED]> wrote: > Hi it appears that: > > http://hadoop.apache.org/docs/current/api/org/apache/hadoop/fs/FileStatus.html > > getPath() > > has no defined contract. > > Why does FileStatus have a "getPAth" method? Would it be the equivalent > effect to > simply make a path qualified using the FileSystem object? > > i.e. path.makeQualified(FileSystem.get()) ? > > -- > Jay Vyas > http://jayunit100.blogspot.com -- Harsh J |