def delete_tmp_files()

in infra-as-code/modules/audio-data-format-change/function-source-code/lib.py [0:0]


  def delete_tmp_files(self):
    """Deletes all tmp files created to free allocated memory
    """
    for filename in os.listdir('/tmp'):
      file_path = os.path.join('/tmp', filename)
      if os.path.isfile(file_path) and filename != 'run':
        os.remove(file_path)
    print('Deleted tmp files')