FileProperties Class

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

Constructor

FileProperties(**kwargs)

Variables

Name Description
name
str

name of the file

owner
str

The owner of the file or directory.

group
str

The owning group of the file or directory.

permissions
str

The permissions that are set for user, group, and other on the file or directory. Each individual permission is in [r,w,x,-]{3} format.

acl
str

The POSIX ACL permissions of the file or directory.

etag
str

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

deleted

if the current file marked as deleted

metadata

Name-value pairs associated with the file as metadata.

encryption_scope
str

A predefined encryption scope used to encrypt the data on the service. An encryption scope can be created using the Management API and referenced here by name. If a default encryption scope has been defined at the file system, this value will override it if the file system level scope is configured to allow overrides. Otherwise an error will be raised.

lease

Stores all the lease information for the file.

last_modified

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

creation_time

Indicates when the file was created, in UTC.

size
int

size of the file

remaining_retention_days
int

The number of days that the file will be retained before being permanently deleted by the service.

encryption_context
str

Specifies the encryption context to set on the file.

content_settings

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()