Skip to content

Fixed EPERM on Linux in case track name starts with leading slash#34

Open
simonmicro wants to merge 1 commit intoBleuzen:masterfrom
simonmicro:patch-1
Open

Fixed EPERM on Linux in case track name starts with leading slash#34
simonmicro wants to merge 1 commit intoBleuzen:masterfrom
simonmicro:patch-1

Conversation

@simonmicro
Copy link
Copy Markdown

@simonmicro simonmicro commented Apr 8, 2026

Turns out for some reason the application maybe reports /A/XX Track for certain media. This then leads to the os.path.join reporting an absolute path from / - see https://stackoverflow.com/a/7865312.

As you only care about the dirname anyways, which is just one component of a path, we can instead also throw basename on it, which strips any remaining paths separators from it as well (should work for all platforms, even if not supported).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant