dkutils.util module¶
- class dkutils.util.FileNameGenerator[source]¶
Bases:
object
- getFileName(extension: str)[source]¶
Generate a sequential filename for a given extension :param extension the extension to be used in the generated filename:
- Returns
a filename in the following form – file_ddd.ext
Where ddd will be a 3 digit number with leading zeros that’s incremented each time the method is called for
a particular extension. ext will be replace with given extension