Use a resource to initialise appsettings.json in config folder (#2)
Watch for KeySet, initial install will not have a valid value TitleDatabase will use data folder Reviewed-on: #2 Co-authored-by: Huy Nguyen <ecenshu@gmail.com> Co-committed-by: Huy Nguyen <ecenshu@gmail.com>
This commit was merged in pull request #2.
This commit is contained in:
@@ -528,7 +528,23 @@ public sealed class SnapshotService : IDisposable, ISnapshotService, IHostedServ
|
||||
_logger.LogWarning("Nonexistent entry found: {Path}", fileEntry.Path);
|
||||
continue;
|
||||
}
|
||||
|
||||
var fileContainedInRootDirectories = false;
|
||||
foreach (var optionsRootDirectory in _options.RootDirectories)
|
||||
{
|
||||
if (fileEntry.Path.StartsWith(optionsRootDirectory))
|
||||
{
|
||||
fileContainedInRootDirectories = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!fileContainedInRootDirectories)
|
||||
{
|
||||
_logger.LogInformation("Entry {Path} is not contained in any root directory", fileEntry.Path);
|
||||
continue;
|
||||
};
|
||||
|
||||
if (_options.RomExtensions.Contains(Path.GetExtension(fileEntry.Path)))
|
||||
{
|
||||
if (fileEntry.Path.Contains(ArchivePathSeparator))
|
||||
|
||||
Reference in New Issue
Block a user