Skip to content

Commit

Permalink
Use follow_symlink=False
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jan 18, 2024
1 parent 63fb613 commit efd4f1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions audeer/core/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ def extract_archive(
['a.txt']
"""
archive = safe_path(archive, follow_symlink=False)
destination = safe_path(destination, follow_symlink=False)

if not os.path.exists(archive):
raise FileNotFoundError(
errno.ENOENT,
Expand Down

0 comments on commit efd4f1e

Please sign in to comment.