diff --git a/src/Umbraco.Core/IO/IIOHelper.cs b/src/Umbraco.Core/IO/IIOHelper.cs index 510e45890f..5a0f5cab45 100644 --- a/src/Umbraco.Core/IO/IIOHelper.cs +++ b/src/Umbraco.Core/IO/IIOHelper.cs @@ -63,7 +63,8 @@ namespace Umbraco.Core.IO DirectoryInfo[] GetTempFolders(); /// - /// Cleans contents of a folder. + /// Cleans contents of a folder by deleting all files older that the provided age. + /// If deletition of any file errors (e.g. due to a file lock) the process will continue to try to delete all that it can. /// /// Folder to clean. /// Age of files within folder to delete. diff --git a/src/Umbraco.Core/IO/IOHelper.cs b/src/Umbraco.Core/IO/IOHelper.cs index f14dabd7ee..08241d28f4 100644 --- a/src/Umbraco.Core/IO/IOHelper.cs +++ b/src/Umbraco.Core/IO/IOHelper.cs @@ -209,11 +209,12 @@ namespace Umbraco.Core.IO } /// - /// Cleans contents of a folder. + /// Cleans contents of a folder by deleting all files older that the provided age. + /// If deletition of any file errors (e.g. due to a file lock) the process will continue to try to delete all that it can. /// /// Folder to clean. /// Age of files within folder to delete. - /// Result of operation + /// Result of operation. public CleanFolderResult CleanFolder(DirectoryInfo folder, TimeSpan age) { folder.Refresh(); // In case it's changed during runtime.