ensure_folder_has_no_conflicting_files#
- composer.utils.ensure_folder_has_no_conflicting_files(folder_name, filename, timestamp)[source]#
Ensure that the given folder does not have any files conflicting with the
filenameformat string.If any filename is formatted with a timestamp where the epoch, batch, sample, or token counts are after
timestamp, aFileExistsErrorwill be raised. Iffilenameand occurs later thantimestamp, raise aFileExistsError.- Parameters
- Raises
FileExistsError โ If
folder_namecontains any files matching thefilenametemplate beforetimestamp.