fix: pos media sync finds nothing when the source dir is a symlink
gates / consistency-and-conventions (push) Successful in 54s

GNU find (default -P) does not descend a command-line symlink to a
directory, so `find $HOME/Music ...` returned zero files and the tool
reported '0 added, 0 updated, 0 unchanged' without creating the target.
Switch to `find -H` (follows only command-line symlinks; inner-symlink
semantics unchanged).
This commit is contained in:
Your Name
2026-08-15 04:01:54 -04:00
parent 9ca78ee080
commit 23d69b795e
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -112,6 +112,10 @@ a no-op. Preview before copying with `--dry-run`:
pos media sync --mp4 --dry-run # shows "would copy" list + counts, copies nothing
```
The source folder may be a symlink to a library elsewhere
(`~/Music -> /mnt/data/music`) — it is followed, the artist/album tree is
mirrored under the symlink's target.
| Flag | Meaning |
|------|---------|
| `--mp3` | Sync only `*.mp3` (neither flag = both) |