Skip to content

Conversation

@yurish
Copy link
Contributor

@yurish yurish commented Mar 25, 2025

Added exclusions in 2 more places, since hidden .wav files on MacOS were picked up.

@Josef-Haupt
Copy link
Member

Can you give me an example of a wrongly picked up file on MacOS?
All I can think of is .DS_Store but that should not be picked up, because DS_Store is not included in cfg.ALLOWED_FILETYPES

@Mattk70
Copy link
Contributor

Mattk70 commented Mar 26, 2025

The change will exclude hidden files on MacOS and Linux, i.e.:

.myHiddenWavFile.wav

@yurish
Copy link
Contributor Author

yurish commented Mar 26, 2025

I don't have such file right now with me, but the problem occurs when you try to read a folder from the flash drive. I believe it is because of MacOS copying metadata files as described here:

https://discussions.apple.com/thread/252896362?sortBy=rank

And here:
https://www.reddit.com/r/MacOS/s/Ul7REKHFKH

In reality, on a flash drive there will be a bunch of files for example with .wav extensions, but prefixed with . or ._

@Josef-Haupt
Copy link
Member

Got it, thanks for explaining.

@Josef-Haupt Josef-Haupt merged commit bd936f8 into birdnet-team:main Mar 26, 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.

3 participants