def __init__(self, name=None, parent=None,
               created=None, modified=None, accessed=None,
               contentType=None, body=None, size=None,
               hidden=None, system=None, archived=None, delete=None,
               writable=None, readable=None, executable=None,
               *args, **kw):
    '''
    FileItem constructor which takes the following optional parameters:

    :param name:

      the file name (relative to the parent folder).

    :param parent:

      the file\'s containing folder.

    :param created:

      the file\'s creation time, in number of seconds since
      the epoch.

    :param modified:

      the file\'s last modification time, in number of seconds
      since the epoch.

    :param accessed:

      the file\'s last accessed time, in number of seconds
      since the epoch.

    :param contentType:

      the file\'s content-type.

    :param body:

      the file\'s content.

    :param size:

      the size of file\'s content, specified as an integer. If not
      specified and `body` is specified, the size will be taken from
      the `body` parameter.

    :param hidden:

      the file\'s "hidden" boolean attribute.

    :param system:

      the file\'s "system" boolean attribute.

    :param archived:

      the file\'s "archived" boolean attribute.

    :param delete:

      the file\'s "delete" boolean attribute.

    :param writable:

      the file\'s "writable" boolean attribute.

    :param readable:

      the file\'s "readable" boolean attribute.

    :param executable:

      the file\'s "executable" boolean attribute.

    '''
    super(FileItem, self).__init__(*args, **kw)
    self.name        = name
    self.parent      = parent
    self.created     = created
    self.modified    = modified
    self.accessed    = accessed
    self.contentType = contentType
    self.body        = body
    self.size        = size
    if self.size is None and self.body is not None:
      self.size      = len(body)
    # attributes
    self.hidden      = hidden
    self.system      = system
    self.archived    = archived
    self.delete      = delete
    self.writable    = writable
    self.readable    = readable
    self.executable  = executable
def __init__ ( self , name = None , parent = None , created = None , modified = None , accessed = None , contentType = None , body = None , size = None , hidden = None , system = None , archived = None , delete = None , writable = None , readable = None , executable = None , * args , ** kw ) : super ( FileItem , self ) . __init__ ( * args , ** kw ) self . name = name self . parent = parent self . created = created self . modified = modified self . accessed = accessed self . contentType = contentType self . body = body self . size = size if self . size is None and self . body is not None : self . size = len ( body ) self . hidden = hidden self . system = system self . archived = archived self . delete = delete self . writable = writable self . readable = readable self . executable = executable
FileItem constructor which takes the following optional parameters:

    :param name:

      the file name (relative to the parent folder).

    :param parent:

      the file\'s containing folder.

    :param created:

      the file\'s creation time, in number of seconds since
      the epoch.

    :param modified:

      the file\'s last modification time, in number of seconds
      since the epoch.

    :param accessed:

      the file\'s last accessed time, in number of seconds
      since the epoch.

    :param contentType:

      the file\'s content-type.

    :param body:

      the file\'s content.

    :param size:

      the size of file\'s content, specified as an integer. If not
      specified and `body` is specified, the size will be taken from
      the `body` parameter.

    :param hidden:

      the file\'s "hidden" boolean attribute.

    :param system:

      the file\'s "system" boolean attribute.

    :param archived:

      the file\'s "archived" boolean attribute.

    :param delete:

      the file\'s "delete" boolean attribute.

    :param writable:

      the file\'s "writable" boolean attribute.

    :param readable:

      the file\'s "readable" boolean attribute.

    :param executable:

      the file\'s "executable" boolean attribute.