FAES/Utilities/FileAES_Utilities.cs
/// <summary>
/// Recursively delete the FileAES temp folder of files/folders created by the current instance of FAES
/// Should fix most issues related to lingering files that were not deleted by FAES automatically
/// WARNING: Should NOT cause issues with other running FAES instances. Still not recommended unless all FAES instances are closed
/// </summary>
/// <returns>Total number of InstancedTempFolders deleted</returns>
Recursively delete the FileAES temp folder of files/folders created by the current instance of FAES
Should fix most issues related to lingering files that were not deleted by FAES automatically
WARNING: Should NOT cause issues with other running FAES instances. Still not recommended unless all FAES instances are closed
Recursively delete the FileAES temp folder of files / folders created by the current instance of FAES Should fix most issues related to lingering files that were not deleted by FAES automatically WARNING : Should NOT cause issues with other running FAES instances . Still not recommended unless all FAES instances are closed
public static int PurgeInstancedTempFolders()
        {
            int totalDeleted = 0;
            foreach (TempPath tempPath in _instancedTempFolders)
            {
                string pTempPath = tempPath.GetTempPath();
                if (Directory.Exists(pTempPath))
                {
                    Logging.Log($"Deleted InstancedTempFolder[{totalDeleted}]: {pTempPath}", Severity.DEBUG);
                    Directory.Delete(pTempPath, true);
                    totalDeleted++;
                }
            }
            _instancedTempFolders.Clear();
            return totalDeleted;
        }
public static int PurgeInstancedTempFolders ( ) { int totalDeleted = 0 ; foreach ( TempPath tempPath in _instancedTempFolders ) { string pTempPath = tempPath . GetTempPath ( ) ; if ( Directory . Exists ( pTempPath ) ) { Logging . Log ( $" Deleted InstancedTempFolder[ { totalDeleted } ]:  { pTempPath } " , Severity . DEBUG ) ; Directory . Delete ( pTempPath , true ) ; totalDeleted ++ ; } } _instancedTempFolders . Clear ( ) ; return totalDeleted ; }
Recursively delete the FileAES temp folder of files/folders created by the current instance of FAES
Should fix most issues related to lingering files that were not deleted by FAES automatically
WARNING: Should NOT cause issues with other running FAES instances.
Recursively delete the FileAES temp folder of files / folders created by the current instance of FAES Should fix most issues related to lingering files that were not deleted by FAES automatically WARNING : Should NOT cause issues with other running FAES instances .
Total number of InstancedTempFolders deleted
Total number of InstancedTempFolders deleted