File Class

File class.

Inheritance
builtins.object
File

Constructor

File(name=None, content=None, props=None, metadata=None)

Parameters

Name Description
name
default value: None
content
default value: None
props
default value: None
metadata
default value: None

Variables

Name Description
name
str

The name of the file.

content
str or bytes

File content.

properties

System properties for the file.

metadata

A dict containing name-value pairs associated with the file as metadata. This var is set to None unless the include=metadata param was included for the list file operation. If this parameter was specified but the file has no metadata, metadata will be set to an empty dictionary.