private void CopyFile(string source, string target, ArchiveFileDelegate archiveFileDelegate, object userData) { mArchiveFileDelegate = archiveFileDelegate; mUserData = userData; string dirPath = PWLib.Platform.Windows.Path.GetStemName(target); if (!PWLib.Platform.Windows.Directory.Exists(dirPath)) { PWLib.Platform.Windows.Directory.CreateDirectory(dirPath); } mFileCopyEx.CopyFile(source, target); }
public abstract void CopyFileFromRevision(VolumeSnapshotRevision sourceRevision, VolumeSnapshotRevision targetRevision, string fileRelativePath, ArchiveFileDelegate archiveFileDelegate, object userData);
public abstract void RestoreFile(VolumeSnapshotRevision revision, string fileRelativePath, string onDiskOutputPath, ArchiveFileDelegate archiveFileDelegate, object userData);
public abstract void StoreFile(VolumeSnapshotRevision revision, string relativePath, string onDiskPath, ArchiveFileDelegate archiveFileDelegate, object userData);
public abstract void StoreFile( VolumeSnapshotRevision revision, string relativePath, string onDiskPath, ArchiveFileDelegate archiveFileDelegate, object userData );
public abstract void RestoreFile( VolumeSnapshotRevision revision, string fileRelativePath, string onDiskOutputPath, ArchiveFileDelegate archiveFileDelegate, object userData );
public abstract void CopyFileFromRevision( VolumeSnapshotRevision sourceRevision, VolumeSnapshotRevision targetRevision, string fileRelativePath, ArchiveFileDelegate archiveFileDelegate, object userData );
public override void CopyFileFromRevision(VolumeSnapshotRevision sourceRevision, VolumeSnapshotRevision targetRevision, string fileRelativePath, ArchiveFileDelegate archiveFileDelegate, object userData) { CopyFile(RelativePathToOnDiskPath(sourceRevision, fileRelativePath), RelativePathToOnDiskPath(targetRevision, fileRelativePath), archiveFileDelegate, userData); }
public override void RestoreFile(VolumeSnapshotRevision revision, string fileRelativePath, string onDiskOutputPath, ArchiveFileDelegate archiveFileDelegate, object userData) { if (onDiskOutputPath[onDiskOutputPath.Length - 1] == PWLib.Platform.Windows.Path.DirectorySeparatorChar) { onDiskOutputPath = onDiskOutputPath.Substring(0, onDiskOutputPath.Length - 1); } CopyFile(RelativePathToOnDiskPath(revision, fileRelativePath), onDiskOutputPath, archiveFileDelegate, userData); }
public override void StoreFile(VolumeSnapshotRevision revision, string relativePath, string onDiskPath, ArchiveFileDelegate archiveFileDelegate, object userData) { CopyFile(onDiskPath, RelativePathToOnDiskPath(revision, relativePath), archiveFileDelegate, userData); }
public override void CopyFileFromRevision( VolumeSnapshotRevision sourceRevision, VolumeSnapshotRevision targetRevision, string fileRelativePath, ArchiveFileDelegate archiveFileDelegate, object userData ) { CopyFile( RelativePathToOnDiskPath( sourceRevision, fileRelativePath ), RelativePathToOnDiskPath( targetRevision, fileRelativePath ), archiveFileDelegate, userData ); }
private void CopyFile( string source, string target, ArchiveFileDelegate archiveFileDelegate, object userData ) { mArchiveFileDelegate = archiveFileDelegate; mUserData = userData; string dirPath = PWLib.Platform.Windows.Path.GetStemName( target ); if ( !PWLib.Platform.Windows.Directory.Exists( dirPath ) ) PWLib.Platform.Windows.Directory.CreateDirectory( dirPath ); mFileCopyEx.CopyFile( source, target ); }
public override void StoreFile( VolumeSnapshotRevision revision, string relativePath, string onDiskPath, ArchiveFileDelegate archiveFileDelegate, object userData ) { CopyFile( onDiskPath, RelativePathToOnDiskPath( revision, relativePath ), archiveFileDelegate, userData ); }
public override void RestoreFile( VolumeSnapshotRevision revision, string fileRelativePath, string onDiskOutputPath, ArchiveFileDelegate archiveFileDelegate, object userData ) { if ( onDiskOutputPath[ onDiskOutputPath.Length - 1 ] == PWLib.Platform.Windows.Path.DirectorySeparatorChar ) onDiskOutputPath = onDiskOutputPath.Substring( 0, onDiskOutputPath.Length - 1 ); CopyFile( RelativePathToOnDiskPath( revision, fileRelativePath ), onDiskOutputPath, archiveFileDelegate, userData ); }