Click or drag to resize

CopyOptions Enumeration

Flags that specify how a file or directory is to be copied.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
[FlagsAttribute]
public enum CopyOptions
Members
  Member nameValueDescription
None0No CopyOptions used, this allows overwriting the file.
FailIfExists1COPY_FILE_FAIL_IF_EXISTS

The copy operation fails immediately if the target file already exists.

Restartable2COPY_FILE_RESTARTABLE

Progress of the copy is tracked in the target file in case the copy fails. The failed copy can be restarted at a later time by specifying the same values forexisting file name and new file name as those used in the call that failed. This can significantly slow down the copy operation as the new file may be flushed multiple times during the copy operation.

OpenSourceForWrite4COPY_FILE_OPEN_SOURCE_FOR_WRITE

The file is copied and the original file is opened for write access.

AllowDecryptedDestination8COPY_FILE_ALLOW_DECRYPTED_DESTINATION

An attempt to copy an encrypted file will succeed even if the destination copy cannot be encrypted.

CopySymbolicLink2048COPY_FILE_COPY_SYMLINK, similar to XCOPY /B parameter: Copies the Symbolic Link itself versus the target of the link.

If the source file is a symbolic link, the destination file is also a symbolic link pointing to the same file that the source symbolic link is pointing to.

NoBuffering4096COPY_FILE_NO_BUFFERING

The copy operation is performed using unbuffered I/O, bypassing system I/O cache resources. Recommended for very large file transfers.

See Also