Skip to content

Commit

Permalink
Add extra verbose logging to FileSystem validation
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterTinus committed Mar 28, 2018
1 parent 0e66767 commit cf54b31
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -72,7 +72,8 @@ protected override void DeleteFile(string path)
var fi = new FileInfo(path);
if (fi.Exists)
{
fi.Delete();
_log.Verbose("Deleting file {path}", path);
fi.Delete();
}
else
{
Expand All @@ -85,6 +86,7 @@ protected override void DeleteFolder(string path)
var di = new DirectoryInfo(path);
if (di.Exists)
{
_log.Verbose("Deleting folder {path}", path);
di.Delete();
}
else
Expand All @@ -105,6 +107,7 @@ protected override void WriteFile(string path, string content)
{
fi.Directory.Create();
}
_log.Verbose("Writing file to {path}", path);
File.WriteAllText(path, content);
}

Expand Down

0 comments on commit cf54b31

Please sign in to comment.