'/a/b/picture.tex', '1') supplement_file_name(
PosixPath('/a/b/picture_1.tex')
A small utility function to derive a file path by appending something to the name (and only to the name).
supplement_file_name (file:str|pathlib.Path, sup:str)
Adds a string between the file name in a path and the suffix
Type | Details | |
---|---|---|
file | str | pathlib.Path | File name |
sup | str | String to be added |
Returns | Path | “Supplemented” file name |
unique_name (file:str|pathlib.Path)
Builds a unique file name out of a given one
Type | Details | |
---|---|---|
file | str | pathlib.Path | Input file name |
Returns | Path | Unique file name |