Add framework for deleteable files

This commit is contained in:
Matt Nadareski
2023-10-18 15:33:32 -04:00
parent b5cf274333
commit 87ecf1aa99
2 changed files with 12 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
- Create method for applying theme
- Fix drive letter check
- Simply theme application
- Add framework for deleteable files
### 2.7.2 (2023-10-17)

View File

@@ -235,6 +235,17 @@ namespace MPF.Core.Modules
public virtual string? GetDefaultExtension(MediaType? mediaType) => null;
#endif
/// <summary>
/// Generate a list of all deleteable files generated
/// </summary>
/// <param name="basePath">Base filename and path to use for checking</param>
/// <returns>List of all deleteable file paths, empty otherwise</returns>
#if NET48
public virtual List<string> GetDeleteableFilePaths(string basePath) => new List<string>();
#else
public virtual List<string> GetDeleteableFilePaths(string basePath) => new();
#endif
/// <summary>
/// Generate a list of all log files generated
/// </summary>