docs: def write_file(filename, content):
      '''
      Writes files
  
      :param filename:
          The full path of the file to write
          (enclosing folder must already exist)
      :param content:
          The content to write
      :returns:
          The size of the data written
      '''
  
      if filename and _path.exists(_path.dirname(filename)) and content:
          with open(filename, 'w') as f:
              return f.write(content)