[GH-ISSUE #832] Syncing a single record (or file) #577

Closed
opened 2026-02-26 02:33:36 +03:00 by kerem · 2 comments
Owner

Originally created by @nival999 on GitHub (Oct 16, 2018).
Original GitHub issue: https://github.com/koel/koel/issues/832

Hi,

I noticed in the php artisan koel:sync command there's an option to specify a --record file. I have tried numerous appendages like record?"PUT /home/koel/music/file.mp3" but no files are being added. Is there a way to programatically add or sync a single file (or song) to the database?

Thanks

Originally created by @nival999 on GitHub (Oct 16, 2018). Original GitHub issue: https://github.com/koel/koel/issues/832 Hi, I noticed in the php artisan koel:sync command there's an option to specify a --record file. I have tried numerous appendages like record?"PUT /home/koel/music/file.mp3" but no files are being added. Is there a way to programatically add or sync a single file (or song) to the database? Thanks
kerem closed this issue 2026-02-26 02:33:36 +03:00
Author
Owner

@phanan commented on GitHub (Oct 19, 2018):

--record is meant for an inotify watch record, so it only accepts such format. For example: CLOSE_WRITE,CLOSE $path.

<!-- gh-comment-id:431297227 --> @phanan commented on GitHub (Oct 19, 2018): `--record` is meant for an [inotify watch record](https://koel.phanan.net/docs/#/watch), so it only accepts such format. For example: `CLOSE_WRITE,CLOSE $path`.
Author
Owner

@phanan commented on GitHub (Oct 19, 2018):

To clarify: The command is simply php artisan koel:sync "CLOSE_WRITE,CLOSE $path".

<!-- gh-comment-id:431387426 --> @phanan commented on GitHub (Oct 19, 2018): To clarify: The command is simply `php artisan koel:sync "CLOSE_WRITE,CLOSE $path"`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#577
No description provided.