Replace runtime `item.path` and `album.artpath` consumers
Author: snejusCreated Sep 1, 2026Updated Sep 29, 2026
Labelscore
Part of: #1409
Depends on: model filesystem helpers accepting Path.
Problem
Many runtime call sites still use LibModel.path and Album.artpath directly even when they are working with files on disk. That keeps byte-path assumptions in plugins, UI commands, importer code, and tests that should only need the Path-facing model API.
Expected behavior
- Runtime code uses
item.filepathinstead ofitem.pathfor filesystem operations. - Runtime code uses
album.art_filepathinstead ofalbum.artpathfor album art filesystem operations. LibModel.pathandAlbum.artpathremain available only for storage compatibility and targeted byte-boundary tests.- Plugin code passes
Pathvalues to path utilities, subprocess argument construction, media libraries, and event payloads when the called API accepts path-like objects. - User-facing output remains unchanged.
Suggested fix
Update core, UI, and plugin call sites in one pass after the model helper contract is Path-native. Keep byte-property assertions only where they intentionally document storage compatibility.
Acceptance criteria
- Direct
item.pathandalbum.artpathuse is limited to compatibility, persistence, or explicit boundary tests. - Affected importer, UI, plugin, and library tests pass.
- No user-facing path formatting regresses.
poe testandpoe lintpass with coverage at or above 80%.
Source: beetbox/beets