This commit is contained in:
@@ -136,6 +136,22 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// DANGER: Erases all Utility files including backups etc
|
||||||
|
/// </summary>
|
||||||
|
internal static void EraseEntireContentsOfUtilityFilesFolder()
|
||||||
|
{
|
||||||
|
System.IO.DirectoryInfo di = new DirectoryInfo(UtilityFilesFolder);
|
||||||
|
foreach (FileInfo file in di.EnumerateFiles())
|
||||||
|
{
|
||||||
|
file.Delete();
|
||||||
|
}
|
||||||
|
foreach (DirectoryInfo dir in di.EnumerateDirectories())
|
||||||
|
{
|
||||||
|
dir.Delete(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion Utility file handling
|
#endregion Utility file handling
|
||||||
|
|
||||||
#region Zip handling
|
#region Zip handling
|
||||||
@@ -278,6 +294,8 @@ namespace AyaNova.Util
|
|||||||
System.IO.File.Move(tempFilePath, permanentFilePath);
|
System.IO.File.Move(tempFilePath, permanentFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//seems to be uploaded with the text null
|
||||||
|
if (notes == "null") notes = string.Empty;
|
||||||
|
|
||||||
//Build AyFileInfo
|
//Build AyFileInfo
|
||||||
FileAttachment fi = new FileAttachment()
|
FileAttachment fi = new FileAttachment()
|
||||||
|
|||||||
Reference in New Issue
Block a user