Skip to content

Commit

Permalink
fix: don't remove the currently in use VFS root 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Oct 6, 2024
1 parent 76dc219 commit 1414bb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Shokofin/Tasks/CleanupVirtualRootTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public Task ExecuteAsync(IProgress<double> progress, CancellationToken cancellat

var start = DateTime.Now;
var virtualRoots = Plugin.Instance.AllVirtualRoots
.Except([Plugin.Instance.VirtualRoot])
.Where(Directory.Exists)
.ToList();
Logger.LogDebug("Found {RemoveCount} VFS roots to remove.", virtualRoots.Count);
Expand Down

0 comments on commit 1414bb0

Please sign in to comment.