scene_synthesizer.utils.get_random_filename

scene_synthesizer.utils.get_random_filename(suffix, prefix='', dir='/tmp')

Generate a random 8-character file name that won’t exist in the provided directory.

Parameters:
  • suffix (str) – File ending / extension

  • prefix (str, optional) – Start of the file base name. Defaults to empty string “”.

  • dir (str, optional) – Directory of the file. Defaults to “/tmp”.

Returns:

File name / path.

Return type:

str