FileSystemProvider.Copy(IPath, IPath, ICopyOption[]) Method

Definition

Copy a file to a target file.

[Android.Runtime.Register("copy", "(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)V", "GetCopy_Ljava_nio_file_Path_Ljava_nio_file_Path_arrayLjava_nio_file_CopyOption_Handler", ApiSince=26)]
public abstract void Copy (Java.Nio.FileNio.IPath? source, Java.Nio.FileNio.IPath? target, params Java.Nio.FileNio.ICopyOption[]? options);
[<Android.Runtime.Register("copy", "(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)V", "GetCopy_Ljava_nio_file_Path_Ljava_nio_file_Path_arrayLjava_nio_file_CopyOption_Handler", ApiSince=26)>]
abstract member Copy : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IPath * Java.Nio.FileNio.ICopyOption[] -> unit

Parameters

source
IPath

the path to the file to copy

target
IPath

the path to the target file

options
ICopyOption[]

options specifying how the copy should be done

Attributes

Remarks

Java documentation for java.nio.file.spi.FileSystemProvider.copy(java.nio.file.Path, java.nio.file.Path, java.nio.file.CopyOption).

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