Show / Hide Table of Contents

Class CopyFile

Surfaces the Darwin CopyFile API which can both copy individual files as well as copying directory structures.

Inheritance
System.Object
CopyFile
Namespace: Darwin
Assembly: CopyFile.dll
Syntax
public class CopyFile

Constructors

CopyFile()

Declaration
public CopyFile ();

Methods

Copy(String, String, CopyFile+Flags, CopyFile+State)

This function copies a file or directory to a destination.

Declaration
public static Darwin.CopyFile.Status Copy (string from, string to, Darwin.CopyFile.Flags flags, Darwin.CopyFile.State state = null);
Parameters
Type Name Description
System.String from

To be added.

System.String to

To be added.

flags

To be added.

state

To be added.

Returns
Type Description

To be added.

Remarks

The copy operation can be configured using the flags parameter.

Use Flags.All to copy all the content, metadata and extended attributes.

Use Flags.Recursive to perform a recursive copy.

Use Flags.Clone for using the clone fast copy mechanism available on APFS, it automatically fallsback to simple copies.

To get control over the copy operation during recursive copies, you can provide a State object.

Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX