mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-21 23:18:06 -04:00
On Windows, physical file paths use backslashes (e.g. C:\Users\file.txt).
filterBatchResources was calling pathStr.lastIndexOf("/") which always
returned -1 on Windows paths, causing all files to be filtered out of
the cache update. This produced multi-second UI latency after file
operations while waiting for a full refetch.
Normalize both the scope path and the resource path to forward slashes
before comparison, making the filter work correctly on all platforms.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>