code: def write_to_disk(filename, delete=False, content=get_time()):
      
      if not os.path.exists(os.path.dirname(filename)):
          return
      if delete:
          if os.path.lexists(filename):
              os.remove(filename)
      else:
          with open(filename, 'wb') as f:
              f.write(content.encode('utf-8'))
docs: Write filename out to disk