File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,33 +129,6 @@ private static void Sync()
129129 Log ( file . FileName , file . AbsolutePath , Actions . deleted ) ;
130130 }
131131 }
132-
133- // foreach(var file in backupFileList)
134- // {
135- // var matchingSourceByFile = sourceFileList.FindAll(source => source.RelativeFilePath == file.RelativeFilePath);
136- // var matchingSourceByMD5 = sourceFileList.FindAll(source => source.md5Code == file.md5Code);
137-
138- // if (matchingSourceByFile.Count == 0 && matchingSourceByMD5.Count == 0) // the file was deleted
139- // {
140- // File.Delete(file.AbsoluteFilePath);
141- // Log(file.FileName, file.AbsoluteFilePath, Actions.deleted);
142- // }
143- // else if (matchingSourceByMD5.Count > 1) // File was copied, maybe even renamed, but we're not checking for that - DOESN'T WORK
144- // {
145- // foreach(var sourceFile in matchingSourceByMD5)
146- // {
147- // string destinationDir = Path.Combine(destinationFolder, sourceFile.RelativePath);
148- // string finalFile = Path.Combine(destinationDir, file.FileName);
149- // if (!Directory.Exists(destinationDir))
150- // Directory.CreateDirectory(destinationDir);
151- // if (!File.Exists(finalFile))
152- // {
153- // File.Copy(sourceFile.AbsoluteFilePath, finalFile);
154- // Log(sourceFile.FileName, destinationDir, Actions.copied);
155- // }
156- // }
157- // }
158- // }
159132 }
160133
161134 enum Actions
You can’t perform that action at this time.
0 commit comments