cleanup_filenames¶
Summary¶
- cleanup_filenames(filenames: list[str]) list[str]¶
Takes in a list of filenames and cleans them up. This means removing any directory/path information, trailing slashes, or other common characters in an attempt to normalize these values as much as possible.
- Parameters:
filenames (list[str]) – A list of filenames. These values can be relative or absolute, or a combination of both.
- Returns:
A normalized list of filenames. (filename.extension)
- Return type:
list[str]
Importing¶
from cs_board_tools.io.bundle import cleanup_filenames