-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pathlib instead of beets's path handling
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 `Path`s. - `beets.util.mkdirall` -> `Path.mkdir` - `beets.util.link` -> `Path.symlink_to` - `beets.util.copy` -> `shutil.copfyile` - `beets.util.samefile` -> `Path.__eq__ `
- Loading branch information
1 parent
faeb20a
commit 5623336
Showing
4 changed files
with
88 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.