| 203 |
|
|
| 204 |
|
--- |
| 205 |
|
|
| 206 |
+ |
## Absolute Rules |
| 207 |
+ |
|
| 208 |
+ |
- **The NAS music library is read-only. NEVER delete or modify files under `music_library_path`.** |
| 209 |
+ |
The library is the master collection. The app is only permitted to read and scan it. |
| 210 |
+ |
All writes, copies, and deletions are restricted to the drive folders under `[Drives]`. |
| 211 |
+ |
`RemoveTracksFromDrive()` enforces this with an explicit path prefix guard — any file |
| 212 |
+ |
whose path does not begin with the active `drive_path` is silently skipped and never touched. |
| 213 |
+ |
|
| 214 |
+ |
--- |
| 215 |
+ |
|
| 216 |
|
## Notes & Decisions |
| 217 |
|
|
| 218 |
|
- **Filesystem over Music Assistant API**: Scan the NAS directly. FLAC tags are |