Skip to content

Commit b5919bf

Browse files
committed
forgot to remove the old stuff
1 parent b8d3cf0 commit b5919bf

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

FolderSync/Program.cs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)