Skip to content

Commit

Permalink
Deleting Old Zip Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMWestbrook committed Nov 30, 2020
1 parent df6f2e5 commit 96466dc
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,21 @@ private void BackupProjectButton_Click(object sender, RoutedEventArgs e)

//DirectoryCopy(projectPath, BackupOnePath, true);
string BackupZipOne = Path.Combine(BackupOnePath, ProjectName.Text + ".zip");
string BackupZipTwo = BackupTwoPath + @"\" + ProjectName + ".zip";
string BackupZipTwo = Path.Combine(BackupTwoPath, ProjectName.Text + ".zip");
if (BackupZipOne != "")
{
DeleteZip(BackupZipOne);
// ZipFile.CreateFromDirectory(projectPath, BackupOnePath + @"\" + ProjectName + ".zip");
ZipFile.CreateFromDirectory(projectPath,Path.Combine(BackupOnePath,ProjectName.Text+ ".zip"));


}
ZipFile.CreateFromDirectory(projectPath, Path.Combine(BackupOnePath, ProjectName.Text + ".zip"));
if (BackupZipTwo != "")
{
DeleteZip(BackupZipTwo);
ZipFile.CreateFromDirectory(projectPath, Path.Combine(BackupTwoPath, ProjectName.Text + ".zip"));
}
ZipFile.CreateFromDirectory(projectPath, Path.Combine(BackupTwoPath, ProjectName.Text + ".zip"));

}

private void DeleteZip(string path)
Expand Down
Binary file modified bin/Debug/RPGMVTools.exe
Binary file not shown.
Binary file modified bin/Debug/RPGMVTools.pdb
Binary file not shown.
Binary file modified bin/Release/RPGMVTools.exe
Binary file not shown.
Binary file modified bin/Release/RPGMVTools.pdb
Binary file not shown.
Binary file modified obj/Debug/RPGMVTools.exe
Binary file not shown.
Binary file modified obj/Debug/RPGMVTools.pdb
Binary file not shown.
Binary file modified obj/Release/RPGMVTools.exe
Binary file not shown.
Binary file modified obj/Release/RPGMVTools.pdb
Binary file not shown.

0 comments on commit 96466dc

Please sign in to comment.