Skip to content

Commit

Permalink
delete without copy
Browse files Browse the repository at this point in the history
  • Loading branch information
leedavi committed Jun 17, 2021
1 parent 9826a58 commit db7c8e2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ static void SyncAll(DirectoryInfo gitDir, DirectoryInfo webDir)
{
if (Path.GetExtension(fi.Name) != "")
{
fi.CopyTo(Path.Combine(webDir.FullName, Path.GetFileNameWithoutExtension(fi.Name)), true);
File.Delete(Path.Combine(webDir.FullName, fi.Name));
Console.WriteLine("Delete: " + Path.Combine(webDir.FullName, fi.Name));
}
Expand Down

0 comments on commit db7c8e2

Please sign in to comment.