Files
spacedrive/packages
slvnlrt c77985d11e fix(ui): normalize Windows path separators in useNormalizedQuery
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>
2026-03-06 23:52:40 +01:00
..