Internally, all paths are represented by Path instances instead of bytes. When we pass paths to beets code (Item.write, beets.art.embed_item) we explicitly convert it to bytes.
We replace the following beets utility functions with standard library versions that handle Paths.
Internally, all paths are represented by
Path
instances instead ofbytes
. When we pass paths to beets code (Item.write
,beets.art.embed_item
) we explicitly convert it tobytes
.We replace the following beets utility functions with standard library versions that handle
Path
s.beets.util.mkdirall
->Path.mkdir
beets.util.link
->Path.symlink_to
beets.util.copy
->shutil.copfyile
beets.util.samefile
->Path.__eq__