public Path makeQualified ( FileSystem fs ) { Path path = this ; if ( ! isAbsolute ( ) ) { FileSystem . LogForCollect . info ( "make Qualify non absolute path: " + this . toString ( ) + " working directory: " + fs . getWorkingDirectory ( ) ) ; path = new Path ( fs . getWorkingDirectory ( ) , this ) ; } URI pathUri = path . toUri ( ) ; URI fsUri = fs . getUri ( ) ; String scheme = pathUri . getScheme ( ) ; String authority = pathUri . getAuthority ( ) ; if ( scheme != null && ( authority != null || fsUri . getAuthority ( ) == null ) ) return path ; if ( scheme == null ) { scheme = fsUri . getScheme ( ) ; } if ( authority == null ) { authority = fsUri . getAuthority ( ) ; if ( authority == null ) { authority = "" ; } } return new Path ( scheme + ":" + "//" + authority + pathUri . getPath ( ) ) ; }
Returns a qualified path object .