generated from brennen/python_project
do not prematurely resolve relative paths
This commit is contained in:
@@ -10,7 +10,7 @@ def main(music_folder: Path):
|
|||||||
copyfile(m3u, m3u.with_suffix(".m3u.bak"))
|
copyfile(m3u, m3u.with_suffix(".m3u.bak"))
|
||||||
|
|
||||||
with m3u.open("r") as contents:
|
with m3u.open("r") as contents:
|
||||||
tracks = [Path(p).resolve() for p in contents.readlines()]
|
tracks = [Path(p) for p in contents.readlines()]
|
||||||
|
|
||||||
if not all(
|
if not all(
|
||||||
music_folder in track.parents
|
music_folder in track.parents
|
||||||
|
|||||||
Reference in New Issue
Block a user