Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Doc/library/zipfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,29 @@ Path objects are traversable using the ``/`` operator or ``joinpath``.

Read the current file as bytes.

.. method:: Path.glob(pattern)

Iterate over all files in the directory represented by this path that
match the given relative glob *pattern*, yielding :class:`~zipfile.Path`
objects. The *pattern* must not be empty.

.. versionadded:: 3.12

.. method:: Path.rglob(pattern)

Recursively iterate over all files matching the given relative glob
*pattern*. This is equivalent to calling :meth:`~Path.glob` with ``"**/``
added in front of the pattern.

.. versionadded:: 3.12

.. method:: Path.match(path_pattern)

Match this path against the provided glob-style *path_pattern*. Return
``True`` if matching is successful, ``False`` otherwise.

.. versionadded:: 3.12

.. method:: Path.joinpath(*other)

Return a new Path object with each of the *other* arguments
Expand Down
Loading