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
filename
format string.If any filename is formatted with a timestamp where the epoch, batch, sample, or token counts are after
timestamp
, aFileExistsError
will be raised. Iffilename
and occurs later thantimestamp
, raise aFileExistsError
.- Parameters
- Raises
FileExistsError โ If
folder_name
contains any files matching thefilename
template beforetimestamp
.