h5rdmtoolbox.utils.generate_temporary_filename

h5rdmtoolbox.utils.generate_temporary_filename#

h5rdmtoolbox.utils.generate_temporary_filename(prefix='tmp', suffix='', touch=False)[source]#

Generates a temporary filename in user tmp file directory.

Parameters:
  • prefix (str, optional) – Prefix string, by default ‘tmp’.

  • suffix (str, optional) – Suffix including ‘.’, by default ‘’.

  • touch (bool, optional) – If True, creates the empty file, by default False.

Returns:

pathlib.Path – Path to the generated temporary file.