TemporaryFileHelper.PurgeDirectoryDefault method
namespace: Serenity.IO assembly: Serenity.Net.Core
Clears a folder based on default conditions
public static void PurgeDirectoryDefault(string directoryToClean,
ITemporaryFileSystem fileSystem = null)
| parameter | description |
|---|---|
| directoryToClean | Folder to be cleared |
| fileSystem | File system |
Remarks
If any errors occur during cleanup, this doesn't raise an exception and ignored. Other errors might raise an exception. As errors are ignored, method can't guarantee that less than specified number of files will be in the folder after it ends.
See Also
- interface ITemporaryFileSystem
- class TemporaryFileHelper