CopyOptions Enumeration |
Namespace: Alphaleonis.Win32.Filesystem
Member name | Value | Description | |
---|---|---|---|
None | 0 | No CopyOptions used, this allows overwriting the file. | |
FailIfExists | 1 | COPY_FILE_FAIL_IF_EXISTS
The copy operation fails immediately if the target file already exists. | |
Restartable | 2 | COPY_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. | |
OpenSourceForWrite | 4 | COPY_FILE_OPEN_SOURCE_FOR_WRITE
The file is copied and the original file is opened for write access. | |
AllowDecryptedDestination | 8 | COPY_FILE_ALLOW_DECRYPTED_DESTINATION
An attempt to copy an encrypted file will succeed even if the destination copy cannot be encrypted. | |
CopySymbolicLink | 2048 | COPY_FILE_COPY_SYMLINK
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. | |
NoBuffering | 4096 | COPY_FILE_NO_BUFFERING
The copy operation is performed using unbuffered I/O, bypassing system I/O cache resources. Recommended for very large file transfers. |