FileProperties Class

File's properties class.

Inheritance
azure.storage.fileshare._shared.models.DictMixin
FileProperties

Constructor

FileProperties(**kwargs)

Variables

Name Description
name
str

The name of the file.

path
str

The path of the file.

share
str

The name of share.

snapshot
str

File snapshot.

content_length
int

Size of file in bytes.

metadata

A dict with name_value pairs to associate with the file as metadata.

file_type
str

Type of the file.

last_modified

A datetime object representing the last time the file was modified.

etag
str

The ETag contains a value that you can use to perform operations conditionally.

size
int

Size of file in bytes.

content_range
str

The range of bytes.

server_encrypted

Whether encryption is enabled.

copy
<xref:azure.storage.fileshare.CopyProperties>

The copy properties.

content_settings

The content settings for the file.

Methods

get
has_key
items
keys
update
values

get

get(key, default=None)

Parameters

Name Description
key
Required
default
default value: None

has_key

has_key(k)

Parameters

Name Description
k
Required

items

items()

keys

keys()

update

update(*args, **kwargs)

values

values()