Browse Source

Skip index if directory doesn't exist

pull/55/head
Ionite 1 year ago
parent
commit
e7c87f6a77
No known key found for this signature in database
  1. 3
      StabilityMatrix.Core/Services/SettingsManager.cs

3
StabilityMatrix.Core/Services/SettingsManager.cs

@ -429,6 +429,9 @@ public class SettingsManager : ISettingsManager
var modelHashes = new HashSet<string>();
var sharedModelDirectory = Path.Combine(LibraryDir, "Models");
if (!Directory.Exists(sharedModelDirectory)) return;
var connectedModelJsons = Directory.GetFiles(sharedModelDirectory, "*.cm-info.json",
SearchOption.AllDirectories);
foreach (var jsonFile in connectedModelJsons)

Loading…
Cancel
Save