public URI toUri ( URI fileSystemUri , JimfsPath path ) { checkArgument ( path . isAbsolute ( ) , "path (%s) must be absolute" , path ) ; String root = String . valueOf ( path . root ( ) ) ; Iterable < String > names = Iterables . transform ( path . names ( ) , Functions . toStringFunction ( ) ) ; return type . toUri ( fileSystemUri , root , names , Files . isDirectory ( path , NOFOLLOW_LINKS ) ) ; }
Returns the URI for the given path . The given file system URI is the base against which the path is resolved to create the returned URI .