AcManager.Tools.ContentInstallation.DirectoryContentInstallator.InnerFileInfo.CopyTo C# (CSharp) Method

CopyTo() public method

public CopyTo ( string destination ) : System.Threading.Tasks.Task
destination string
return System.Threading.Tasks.Task
            public async Task CopyTo(string destination) {
                if (!File.Exists(_filename)) {
                    throw new FileNotFoundException(ToolsStrings.DirectoryInstallator_FileNotFound, _filename);
                }

                using (var input = new FileStream(_filename, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, true))
                using (var output = new FileStream(destination, FileMode.Create)) {
                    await input.CopyToAsync(output);
                }
            }
        }
DirectoryContentInstallator.InnerFileInfo