code: def write(path, content, encoding="UTF-8", append=False, raw=False):
      
      mode = 'wb' if not append else 'ab'
      with OPEN_FUNC(path, mode) as _file:
          if raw:
              import shutil
              shutil.copyfileobj(content, _file)
          else:
              _file.write(content.encode(encoding))
docs: Write *content* to file *path*