minor cleanup
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>4.3.2</Version>
|
<Version>4.4.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
namespace Pilz.Updating.Client;
|
using System.Runtime.InteropServices;
|
||||||
|
using Pilz.Runtime;
|
||||||
|
|
||||||
|
namespace Pilz.Updating.Client;
|
||||||
|
|
||||||
public static class Utils
|
public static class Utils
|
||||||
{
|
{
|
||||||
@@ -7,13 +10,13 @@ public static class Utils
|
|||||||
if (!destinationDir.Exists)
|
if (!destinationDir.Exists)
|
||||||
destinationDir.Create();
|
destinationDir.Create();
|
||||||
|
|
||||||
foreach (FileInfo sFile in sourceDir.EnumerateFiles("*", SearchOption.TopDirectoryOnly))
|
foreach (var sFile in sourceDir.EnumerateFiles("*", SearchOption.TopDirectoryOnly))
|
||||||
{
|
{
|
||||||
var dFile = new FileInfo(Path.Combine(destinationDir.FullName, sFile.Name));
|
var dFile = new FileInfo(Path.Combine(destinationDir.FullName, sFile.Name));
|
||||||
CopyFile(sFile, dFile);
|
CopyFile(sFile, dFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (DirectoryInfo sDir in sourceDir.EnumerateDirectories("*", SearchOption.TopDirectoryOnly))
|
foreach (var sDir in sourceDir.EnumerateDirectories("*", SearchOption.TopDirectoryOnly))
|
||||||
{
|
{
|
||||||
var dDir = destinationDir.CreateSubdirectory(sDir.Name);
|
var dDir = destinationDir.CreateSubdirectory(sDir.Name);
|
||||||
CopyFiles(sDir, dDir);
|
CopyFiles(sDir, dDir);
|
||||||
@@ -49,6 +52,7 @@ public static class Utils
|
|||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
// Ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,6 +64,7 @@ public static class Utils
|
|||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
// Ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user