Path

Latest version: v16.14.0

Safety actively analyzes 637944 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 16

10.6

----

- Renamed ``namebase`` to ``stem`` to match API of pathlib.
Kept ``namebase`` as a deprecated alias for compatibility.

- Added new ``with_suffix`` method, useful for renaming the
extension on a Path::

orig = Path('mydir/mypath.bat')
renamed = orig.rename(orig.with_suffix('.cmd'))

10.5

----

- Packaging refresh and readme updates.

10.4

----

- 130: Removed surrogate_escape handler as it's no longer
used.

10.3.1

------

- 124: Fixed ``rmdir_p`` raising ``FileNotFoundError`` when
directory does not exist on Windows.

10.3

----

- 115: Added a new performance-optimized implementation
for listdir operations, optimizing ``listdir``, ``walk``,
``walkfiles``, ``walkdirs``, and ``fnmatch``, presented
as the ``FastPath`` class.

Please direct feedback on this implementation to the ticket,
especially if the performance benefits justify it replacing
the default ``Path`` class.

10.2

----

- Symlink no longer requires the ``newlink`` parameter
and will default to the basename of the target in the
current working directory.

Page 9 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.