From efd4f1e2a8fdd6e8aae3cefcc19993a2997a90b1 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Thu, 18 Jan 2024 17:20:52 +0100 Subject: [PATCH] Use follow_symlink=False --- audeer/core/io.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/audeer/core/io.py b/audeer/core/io.py index 158ab3b..c06fcc0 100644 --- a/audeer/core/io.py +++ b/audeer/core/io.py @@ -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,