bilby.core.utils.io.move_old_file

bilby.core.utils.io.move_old_file(filename, overwrite=False)[source]

Moves or removes an old file.

Parameters:
filename: str

Name of the file to be move

overwrite: bool, optional

Whether or not to remove the file or to change the name to filename + ‘.old’