You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added: follow_symlink keyword argument
to audeer.path()
with default value False
Added: follow_symlink keyword argument
to audeer.rmdir()
with default value True
Changed: audeer.path() does no longer
uses os.path.realpath(),
but os.path.abspath().
This means it does no longer convert symlinks
to the real path,
but returns the path to the symlink.
This provides a speed up of audeer.path()
up to 6x
as it no longer requires a disk operation.
The old behavior of audeer.path()
can be achieved by calling audeer.path(..., follow_symlink=True).
The output of the following functions
is also affected by this change
if a symlink is part of their input path: audeer.common_directory(), audeer.download_url(), audeer.list_dir_names(), audeer.list_file_names(), audeer.mkdir(), audeer.touch()
Changed: the files argument of audeer.create_archive()
can no longer include symbolic links
that are located outside of root
Fixed: audeer.basename_wo_ext(), audeer.file_extension(),
and audeer.replace_file_extension()
are no longer affected by existing files and symlinks,
but rely only on the provided input string