Skip to content

FileSystemExtensions.Copy method

Copies a file to another destination, optionally overwriting the destination if it exists.

public static void Copy(this IFileSystem fileSystem, string sourceFileName, string destFileName, 
    bool overwrite)
parameter description
fileSystem The file system.
sourceFileName The source file name.
destFileName The destination file name.
overwrite true to overwrite the destination file if it already exists.

See Also