public static void DeleteFile(string absoluteFilePath)
{
try
{
if (File.Exists(absoluteFilePath))
{
File.Delete(absoluteFilePath);
}
}
catch(Exception ex)
{
logger.LogError("Library.Functions.DeleteFile(string): Exception: " + ex.ToString());
}
}
{
try
{
if (File.Exists(absoluteFilePath))
{
File.Delete(absoluteFilePath);
}
}
catch(Exception ex)
{
logger.LogError("Library.Functions.DeleteFile(string): Exception: " + ex.ToString());
}
}
No comments:
Post a Comment