File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,8 +17,9 @@ long-path support (Windows) are automatically managed by ``pathlib``.
1717When storing paths in the database, however, convert them to bytes with
1818``bytestring_path() ``. Paths in Beets are currently stored as bytes, although
1919there are plans to eventually store ``pathlib.Path `` objects directly. To access
20- media file paths in their stored form, use the ``.path `` property on ``Item ``
21- and ``Album ``.
20+ media file paths from library objects, use ``.path `` for the absolute path as
21+ ``bytes `` or ``.filepath `` for the absolute path as a ``pathlib.Path ``. The
22+ database still stores these paths relative to the configured library root.
2223
2324Legacy utilities
2425----------------
Original file line number Diff line number Diff line change @@ -386,6 +386,8 @@ Sometimes it's useful to find all the items in your library that are
386386::
387387
388388 $ beet list path:/my/music/directory
389+ $ beet list path:Artist/Album
390+ $ beet list path:Artist/Album/track.mp3
389391
390392In fact, beets automatically recognizes any query term containing a path
391393separator (``/ `` on POSIX systems) as a path query if that path exists, so this
@@ -395,6 +397,9 @@ command is equivalent as long as ``/my/music/directory`` exist:
395397
396398 $ beet list /my/music/directory
397399
400+ The ``path: `` field accepts either an absolute path under the configured music
401+ directory or a path relative to the library root.
402+
398403Note that this only matches items that are *already in your library *, so a path
399404query won't necessarily find *all * the audio files in a directory---just the
400405ones you've already added to your beets library.
You can’t perform that action at this time.
0 commit comments