Marvin Huber
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
src/Microsoft.Tye.Core/DirectoryCopy.cs
|
|
@ -15,7 +15,11 @@ namespace Microsoft.Tye |
|
|
|
|
|
|
|
|
private static void CopyCore(DirectoryInfo source, DirectoryInfo destination) |
|
|
private static void CopyCore(DirectoryInfo source, DirectoryInfo destination) |
|
|
{ |
|
|
{ |
|
|
Directory.CreateDirectory(destination.FullName); |
|
|
if (!source.Exists) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new DirectoryNotFoundException(source.FullName); |
|
|
|
|
|
} |
|
|
|
|
|
destination.Create(); |
|
|
|
|
|
|
|
|
foreach (var file in source.GetFiles()) |
|
|
foreach (var file in source.GetFiles()) |
|
|
{ |
|
|
{ |
|
|
|