ssapy_toolkit.IO.listfiles

Functions

list_files(*patterns[, sort])

Expand path patterns (with shell-style wildcards) into a list of files.

ssapy_toolkit.IO.listfiles.list_files(*patterns: str, sort: bool = True) list[str][source]

Expand path patterns (with shell-style wildcards) into a list of files.

Examples

list_files(“path/to/some/files/filenames_*_numbers.jpg”) list_files(“frames_*.png”, “extra_frames/.png”) list_files(“root/*/frame_*.png”) # recursive with **

Parameters:
  • patterns (str) – One or more path patterns, may include , ?, or *.

  • sort (bool) – If True, apply natural sort (e.g. frame_2 < frame_10).

Returns:

Expanded file paths as strings.

Return type:

list[str]