Importing files errors / mismatches / regex
Steps to reproduce
In a docker container (all-in-one):
- Add a file named: "/music/Music - Relaxing Covers Playlist 2020.mp3"
- Import file with:
-
docker exec -it funkwhale manage import_files $LIB_ID "/music/**/*.mp3" --in-place --async
or docker exec -it funkwhale manage import_files $LIB_ID "/music/*.mp3" --in-place --async
-
What happens?
An error will occurred:
-
Error while reading /music/**/*.mp3: FileNotFoundError [Errno 2] No such file or directory: '/music/**/*.mp3'
or Error while reading /music/*.mp3: FileNotFoundError [Errno 2] No such file or directory: '/music/*.mp3'
What is expected?
Files to be imported successfully.
Context
I'm trying to import a huge files as libray import (as described in docs). But no way to import the files. If I use the following command with full file name it works fine:
docker exec -it funkwhale manage import_files $LIB_ID "/music/Music - Relaxing Covers Playlist 2020.mp3" --in-place --async
Handling batch 1 (1 items)
Import summary:
- 1 files found matching this pattern: ['/music/Music - Relaxing Covers Playlist 2020.mp3']
- 0 files already found in database
- 1 new files
Edited by graniv