IPath.ResolveSibling Method

Definition

Overloads

ResolveSibling(IPath)

Resolves the given path against this path's #getParent parent path.

ResolveSibling(String)

Converts a given path string to a Path and resolves it against this path's #getParent parent path in exactly the manner specified by the #resolveSibling(Path) resolveSibling method.

ResolveSibling(IPath)

Resolves the given path against this path's #getParent parent path.

[Android.Runtime.Register("resolveSibling", "(Ljava/nio/file/Path;)Ljava/nio/file/Path;", "GetResolveSibling_Ljava_nio_file_Path_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.IPath? ResolveSibling (Java.Nio.FileNio.IPath? other);
[<Android.Runtime.Register("resolveSibling", "(Ljava/nio/file/Path;)Ljava/nio/file/Path;", "GetResolveSibling_Ljava_nio_file_Path_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member ResolveSibling : Java.Nio.FileNio.IPath -> Java.Nio.FileNio.IPath

Parameters

other
IPath

the path to resolve against this path's parent

Returns

the resulting path

Attributes

Remarks

Resolves the given path against this path's #getParent parent path. This is useful where a file name needs to be replaced with another file name. For example, suppose that the name separator is "/" and a path represents "dir1/dir2/foo", then invoking this method with the Path "bar" will result in the Path "dir1/dir2/bar". If this path does not have a parent path, or other is #isAbsolute() absolute, then this method returns other. If other is an empty path then this method returns this path's parent, or where this path doesn't have a parent, the empty path.

Java documentation for java.nio.file.Path.resolveSibling(java.nio.file.Path).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ResolveSibling(String)

Converts a given path string to a Path and resolves it against this path's #getParent parent path in exactly the manner specified by the #resolveSibling(Path) resolveSibling method.

[Android.Runtime.Register("resolveSibling", "(Ljava/lang/String;)Ljava/nio/file/Path;", "GetResolveSibling_Ljava_lang_String_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.IPath? ResolveSibling (string? other);
[<Android.Runtime.Register("resolveSibling", "(Ljava/lang/String;)Ljava/nio/file/Path;", "GetResolveSibling_Ljava_lang_String_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member ResolveSibling : string -> Java.Nio.FileNio.IPath

Parameters

other
String

the path string to resolve against this path's parent

Returns

the resulting path

Attributes

Remarks

Converts a given path string to a Path and resolves it against this path's #getParent parent path in exactly the manner specified by the #resolveSibling(Path) resolveSibling method.

Java documentation for java.nio.file.Path.resolveSibling(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to