예제 #1
0
        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);
        }
예제 #2
0
 public abstract void CopyFileFromRevision(VolumeSnapshotRevision sourceRevision, VolumeSnapshotRevision targetRevision, string fileRelativePath, ArchiveFileDelegate archiveFileDelegate, object userData);
예제 #3
0
 public abstract void RestoreFile(VolumeSnapshotRevision revision, string fileRelativePath, string onDiskOutputPath, ArchiveFileDelegate archiveFileDelegate, object userData);
예제 #4
0
 public abstract void StoreFile(VolumeSnapshotRevision revision, string relativePath, string onDiskPath, ArchiveFileDelegate archiveFileDelegate, object userData);
예제 #5
0
 public abstract void StoreFile( VolumeSnapshotRevision revision, string relativePath, string onDiskPath, ArchiveFileDelegate archiveFileDelegate, object userData );
예제 #6
0
 public abstract void RestoreFile( VolumeSnapshotRevision revision, string fileRelativePath, string onDiskOutputPath, ArchiveFileDelegate archiveFileDelegate, object userData );
예제 #7
0
 public abstract void CopyFileFromRevision( VolumeSnapshotRevision sourceRevision, VolumeSnapshotRevision targetRevision, string fileRelativePath, ArchiveFileDelegate archiveFileDelegate, object userData );
예제 #8
0
 public override void CopyFileFromRevision(VolumeSnapshotRevision sourceRevision, VolumeSnapshotRevision targetRevision, string fileRelativePath, ArchiveFileDelegate archiveFileDelegate, object userData)
 {
     CopyFile(RelativePathToOnDiskPath(sourceRevision, fileRelativePath), RelativePathToOnDiskPath(targetRevision, fileRelativePath), archiveFileDelegate, userData);
 }
예제 #9
0
 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);
 }
예제 #10
0
 public override void StoreFile(VolumeSnapshotRevision revision, string relativePath, string onDiskPath, ArchiveFileDelegate archiveFileDelegate, object userData)
 {
     CopyFile(onDiskPath, RelativePathToOnDiskPath(revision, relativePath), archiveFileDelegate, userData);
 }
예제 #11
0
 public override void CopyFileFromRevision( VolumeSnapshotRevision sourceRevision, VolumeSnapshotRevision targetRevision, string fileRelativePath, ArchiveFileDelegate archiveFileDelegate, object userData )
 {
     CopyFile( RelativePathToOnDiskPath( sourceRevision, fileRelativePath ), RelativePathToOnDiskPath( targetRevision, fileRelativePath ), archiveFileDelegate, userData );
 }
예제 #12
0
 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 );
 }
예제 #13
0
 public override void StoreFile( VolumeSnapshotRevision revision, string relativePath, string onDiskPath, ArchiveFileDelegate archiveFileDelegate, object userData )
 {
     CopyFile( onDiskPath, RelativePathToOnDiskPath( revision, relativePath ), archiveFileDelegate, userData );
 }
예제 #14
0
 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 );
 }