Skip to content
File Diff Checker

File Diff Checker

Github ico by: https://www.flaticon.com/authors/gregor-cresnar

Description:

  • The purpose of this project was to find all out of date files on a server, to create backup and uploadable new file folders. The new files are zipped up in the end to make a quick transfer when using slower connections. If anything were to go wrong during testing, upload the backup folder, voila!

image

External References:

image

Compare From / Compare To

  • use CommonOpenFileDialog, via api code pack, to find and select src and destination folders.

With options to change search patterns to "." from default {ServerPatterns} => ".js",".css",".aspx",".dll" this tool can be used to find out of date files; via file1.LastWriteTime > file2.LastWriteTime where file 1 references the Compare From List and file2 references the Compare To List of files.

image

check Root

  • Find root of all folders selected and applies search pattern to find root files

check subDir

  • Enables searching of sub directories; applied to all directories selected

image

run

  • starts the background worker, let the magic happen

image

See your progress:

  • detailing current iteration
  • files being looked at
  • where we are copying from and to

END

  • In the end we close the application and show the folder which will be created on the users desktop via Environment.GetFolderPath(Environment.SpecialFolder.Desktop) in a new folder called UploadFolder