fix build?

This commit is contained in:
Robert Muehsig
2019-01-15 20:54:32 +01:00
parent f4631c99f7
commit 71d2b88b02

View File

@@ -23,6 +23,22 @@ namespace ElectronNET.CLI.Commands.Actions
{
Directory.CreateDirectory(destDirName);
}
else
{
DirectoryInfo targetDir = new DirectoryInfo(destDirName);
foreach (FileInfo fileDel in targetDir.EnumerateFiles())
{
fileDel.Delete();
}
foreach (DirectoryInfo dirDel in targetDir.EnumerateDirectories())
{
dirDel.Delete(true);
}
}
// Get the files in the directory and copy them to the new location.
FileInfo[] files = dir.GetFiles();