beetbox / beetbox/beets

Use pathlib everywhere in beets

Open
#1,409 16 comments 5 reactions 0 assignees View on GitHub
big discussion refactor
Dominant language
Python
Stars
15.7k
Forks
2.1k
Avg merge
4d 21h
Merged PRs (30d)
31

Description

Pathlib is awesome. It abstracts path the platform for path manipulation. It would allow us to have more robust code and get rid to all the calls to `beets.util.*_path()` functions. It could be extended to provide desired `repr()`.

I feel like working on it. It is _huge_ though.
- Am I missing a delicate point that prevents us from using it
- Should it be a 1.3.12 milestone?

Contributor guide

Open the contributing guide

Research direction

The issue proposes replacing beets.util.*_path() calls with pathlib across beets; start by reviewing those path helpers and the places that use them. Done would mean the path manipulation has been migrated broadly enough to remove the existing helper calls while preserving platform-robust behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.