C# Class ZeroInstall.Store.Implementations.CopyDirectoryPosix

Copies the content of a directory to a new location preserving the original file modification times. Uses FlagUtils to preserve executable bits and symlinks if the destination filesystem cannot hold them.
Inheritance: NanoByte.Common.Storage.CopyDirectory
Mostra file Open project: 0install/0install-win

Public Methods

Method Description
CopyDirectoryPosix ( string sourcePath, string destinationPath, bool preserveDirectoryTimestamps = true, bool overwrite = false ) : System

Protected Methods

Method Description
CopyFile ( FileInfo sourceFile, FileInfo destinationFile ) : void
CreateSymlink ( string linkPath, string linkTarget ) : void

Method Details

CopyDirectoryPosix() public method

public CopyDirectoryPosix ( string sourcePath, string destinationPath, bool preserveDirectoryTimestamps = true, bool overwrite = false ) : System
sourcePath string
destinationPath string
preserveDirectoryTimestamps bool
overwrite bool
return System

CopyFile() protected method

protected CopyFile ( FileInfo sourceFile, FileInfo destinationFile ) : void
sourceFile System.IO.FileInfo
destinationFile System.IO.FileInfo
return void

CreateSymlink() protected method

protected CreateSymlink ( string linkPath, string linkTarget ) : void
linkPath string
linkTarget string
return void