这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@zhzy0077
Copy link
Contributor

Description
fixes #1248, repro steps:

  1. After upgrading to v0.8.6
  2. Add a source with disableIndexing: true
  3. Run file browser

Cause

  1. As part of change fix album art indexing #1222 file indexingFiles.go, checkSkip parameter of method GetDirInfo is removed.
  2. idx.shouldSkip always return true when idx.Config.DisableIndexing is true
  3. index.GetFsDirInfo(opts.Path) is called from FileInfoFaster when index.Config.DisableIndexing is true.

The issue raises:
Previous: index.GetFsDirInfo(opts.Path) calls GetDirInfo with checkSkip as false so GetDirInfo will NOT skip file listing even when shouldSkip is true
Now: GetDirInfo will ALWAYS skip file listing when shouldSkip is true

Fixes:
Add checkSkip as a parameter to index.GetFsDirInfo(opts.Path) so it bahaves as before.

Tests:
Tested locally with a few scenarios.

@gtsteffaniak
Copy link
Owner

I don't think this is the solution, the checkSkip function should know all the rules and not need this other condition, you can see the tests fail on some of these exclusion rule expectations.

If you notice an issue, id recommend first open an issue to discuss the solution.

invert condition
@gtsteffaniak
Copy link
Owner

This looks like it was on the right track, but the condition needed to be inverted, so it defaults to always check but can be overriden as part of the actionConfig.

@gtsteffaniak
Copy link
Owner

gtsteffaniak commented Sep 19, 2025

I will merge, then add a test to make sure this doesn't break again

@gtsteffaniak gtsteffaniak changed the base branch from main to dev/v0.8.7 September 19, 2025 15:43
@gtsteffaniak gtsteffaniak merged commit 1f0868a into gtsteffaniak:dev/v0.8.7 Sep 19, 2025
14 checks passed
@gtsteffaniak gtsteffaniak mentioned this pull request Sep 19, 2025
4 tasks
@zhzy0077 zhzy0077 deleted the patch-1 branch September 19, 2025 16:36
@gtsteffaniak gtsteffaniak mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v0.8.6] Directories are all empty when disableIndexing is true

2 participants