save_file#

hvpy.utils.save_file(data, filename, overwrite=False)[source]#

Saves a file to the specified path.

Parameters:
  • data (bytearray) – The data to save.

  • filename (Union[Path, str]) – The path to save the file to.

  • overwrite (bool) – Whether to overwrite the file if it already exists. Default is False.

Returns:

The path to the saved file.

Return type:

Path