From 9e7d6db112147199c3c42039348cc522476b90b1 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 8 Dec 2014 18:04:33 +0000 Subject: [PATCH] create backup record function added --- Saviour Backup System/currentTransfers.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Saviour Backup System/currentTransfers.cs b/Saviour Backup System/currentTransfers.cs index 8b463b1..fdf1b19 100644 --- a/Saviour Backup System/currentTransfers.cs +++ b/Saviour Backup System/currentTransfers.cs @@ -28,7 +28,16 @@ namespace Saviour_Backup_System else if (!Directory.Exists(endDirectory)) { MessageBox.Show("The end directory does not exist."); } - else { copyFiles(drive.Name.Substring(0, 1), endDirectory, visible); } + else { + string hash = tools.hashDirectory(drive.Name); + copyFiles(drive.Name.Substring(0, 1), endDirectory, visible); + } + } + + public void createBackupRecord(DriveInfo drive, string hash) { + string id = USBTools.calculateDriveID(drive); + + } private void copyFiles(string driveLetter, string endDirectory, bool display) //actually starts the backups (and loads the dialogs)