eta.util.file.ensure_file_exists

ensure_file_exists(fname, in_module=False)[source]

Ensure that a file exists, creating an empty file if it doesn’t.

Parameters:
  • fname (str) –

  • in_module (bool, default=False) –