Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not follow symlinks in Ensure basename_wo_ext() #139

Closed
wants to merge 2 commits into from

Conversation

hagenw
Copy link
Member

@hagenw hagenw commented Jan 18, 2024

Relates to #136

The result of audeer.basename_wo_ext() should not be influenced by existing files or symlinks.

This adds first a failing test for the current behavior and then a fix, that avoids following symlinks.

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (dc375de) 100.0% compared to head (6e4fc73) 100.0%.

Additional details and impacted files
Files Coverage Δ
audeer/core/io.py 100.0% <100.0%> (ø)

@hagenw hagenw changed the title Ensure basename_wo_ext() works only on strings Not follow symlinks in Ensure basename_wo_ext() Jan 18, 2024
@hagenw hagenw requested a review from frankenjoe January 18, 2024 16:56
@hagenw
Copy link
Member Author

hagenw commented Jan 22, 2024

This is now longer needed as this is the new default, see #140

@hagenw hagenw closed this Jan 22, 2024
@hagenw hagenw deleted the fix-basename-wo-ext branch January 22, 2024 08:51
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