[Bug]: maybe skip special files (Mac OS X)? #2143

Closed
opened 2026-04-25 00:03:56 +02:00 by adam · 3 comments
Owner

Originally created by @katertier on GitHub (Aug 4, 2024).

What happened?

Audiobookshelf is listing sepcial files/directories of Mac OS X as inaccessible (which ist technically correct, I'm just not sure why it's attempting to access them in the first place).

What did you expect to happen?

not that... :)
I'd expect to skip those and not log them as inaccessible.

Steps to reproduce the issue

  1. use an external storage device on Mac OS X
  2. bind root directory of the storage device to Docker container
  3. Run Audioshelf adds set up a library
  4. scan the library

Audiobookshelf version

2.11.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

macOS

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

2024-08-04 16:28:12.302
ERROR
[fileUtils] Recurse files file "/audiobooks/.Spotlight-V100" has error Error: ENOENT: no such file or directory, stat '/audiobooks/.Spotlight-V100'
2024-08-04 16:28:12.302
ERROR
[fileUtils] Recurse files file "/audiobooks/.TemporaryItems" has error Error: ENOENT: no such file or directory, stat '/audiobooks/.TemporaryItems'
2024-08-04 16:28:12.303
ERROR
[fileUtils] Recurse files file "/audiobooks/.Trashes" has error Error: ENOENT: no such file or directory, stat '/audiobooks/.Trashes'

Additional Notes

this is nitpicking - it doesn't cause any other issues and I'd fully understand if this bug report would just be closed, especially since it's an edge case.

Originally created by @katertier on GitHub (Aug 4, 2024). ### What happened? Audiobookshelf is listing sepcial files/directories of Mac OS X as inaccessible (which ist technically correct, I'm just not sure why it's attempting to access them in the first place). ### What did you expect to happen? not that... :) I'd expect to skip those and not log them as inaccessible. ### Steps to reproduce the issue 1. use an external storage device on Mac OS X 2. bind root directory of the storage device to Docker container 3. Run Audioshelf adds set up a library 4. scan the library ### Audiobookshelf version 2.11.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? macOS ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell 2024-08-04 16:28:12.302 ERROR [fileUtils] Recurse files file "/audiobooks/.Spotlight-V100" has error Error: ENOENT: no such file or directory, stat '/audiobooks/.Spotlight-V100' 2024-08-04 16:28:12.302 ERROR [fileUtils] Recurse files file "/audiobooks/.TemporaryItems" has error Error: ENOENT: no such file or directory, stat '/audiobooks/.TemporaryItems' 2024-08-04 16:28:12.303 ERROR [fileUtils] Recurse files file "/audiobooks/.Trashes" has error Error: ENOENT: no such file or directory, stat '/audiobooks/.Trashes' ``` ### Additional Notes this is nitpicking - it doesn't cause any other issues and I'd fully understand if this bug report would just be closed, especially since it's an edge case.
adam added the bug label 2026-04-25 00:03:56 +02:00
adam closed this issue 2026-04-25 00:03:56 +02:00
Author
Owner

@nichwall commented on GitHub (Aug 4, 2024):

Related to https://github.com/advplyr/audiobookshelf/issues/1641

@nichwall commented on GitHub (Aug 4, 2024): Related to https://github.com/advplyr/audiobookshelf/issues/1641
Author
Owner

@advplyr commented on GitHub (Dec 21, 2024):

Dot files are already ignored but there is a bug.

For future reference when fixing this issue:
https://github.com/advplyr/audiobookshelf/blob/0099ae633af74b9dec00eb45fedf21cd4a96dad3/server/Watcher.js#L192-L198

the waitForFileToAdd function should not run if the addFileUpdate function returns early

@advplyr commented on GitHub (Dec 21, 2024): Dot files are already ignored but there is a bug. For future reference when fixing this issue: https://github.com/advplyr/audiobookshelf/blob/0099ae633af74b9dec00eb45fedf21cd4a96dad3/server/Watcher.js#L192-L198 the `waitForFileToAdd` function should not run if the `addFileUpdate` function returns early
Author
Owner

@github-actions[bot] commented on GitHub (Dec 30, 2024):

Fixed in v2.17.6.

@github-actions[bot] commented on GitHub (Dec 30, 2024): Fixed in [v2.17.6](https://github.com/advplyr/audiobookshelf/releases/tag/v2.17.6).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2143