start 1.11.10
This commit is contained in:
@@ -181,6 +181,8 @@ public sealed class FileCacheManager : IHostedService
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var cleanedPaths = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
var cleanedPaths = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||||
|
var seenCleaned = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
||||||
|
|
||||||
foreach (var p in paths)
|
foreach (var p in paths)
|
||||||
{
|
{
|
||||||
var cleaned = p.Replace("/", "\\", StringComparison.OrdinalIgnoreCase)
|
var cleaned = p.Replace("/", "\\", StringComparison.OrdinalIgnoreCase)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors></Authors>
|
<Authors></Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>1.11.9</Version>
|
<Version>1.11.10</Version>
|
||||||
<Description></Description>
|
<Description></Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl>https://github.com/Light-Public-Syncshells/LightlessClient</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/Light-Public-Syncshells/LightlessClient</PackageProjectUrl>
|
||||||
|
|||||||
@@ -832,7 +832,14 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||||||
{
|
{
|
||||||
foreach (var file in Directory.GetFiles(_configService.Current.CacheFolder))
|
foreach (var file in Directory.GetFiles(_configService.Current.CacheFolder))
|
||||||
{
|
{
|
||||||
File.Delete(file);
|
try
|
||||||
|
{
|
||||||
|
File.Delete(file);
|
||||||
|
}
|
||||||
|
catch (IOException ex)
|
||||||
|
{
|
||||||
|
_logger.LogWarning(ex, $"Could not delete file {file} because it is in use.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user