fixes broken csv loading

This commit is contained in:
Stanley Dimant
2022-09-28 23:49:34 +02:00
parent e71bd0d80f
commit d5f56b6e52
2 changed files with 12 additions and 5 deletions

View File

@@ -47,10 +47,17 @@ public class FileCacheManager : IDisposable
foreach (var entry in entries)
{
var splittedEntry = entry.Split(CsvSplit, StringSplitOptions.None);
var hash = splittedEntry[0];
var path = splittedEntry[1];
var time = splittedEntry[2];
FileCaches[path] = new FileCache(hash, path, time);
try
{
var hash = splittedEntry[0];
var path = splittedEntry[1];
var time = splittedEntry[2];
FileCaches[path] = new FileCache(hash, path, time);
}
catch (Exception)
{
Logger.Warn($"Failed to initialize entry {entry}, ignoring");
}
}
}
}

View File

@@ -3,7 +3,7 @@
<PropertyGroup>
<Authors></Authors>
<Company></Company>
<Version>0.4.21</Version>
<Version>0.4.22</Version>
<Description></Description>
<Copyright></Copyright>
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>