Del via


DirectoryProperties Class

Directory properties class.

Constructor

DirectoryProperties(**kwargs: Any)

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

Attributes

acl

The POSIX ACL permissions of the file or directory.

acl: str | None = None

creation_time

A datetime object representing when the directory was created, in UTC.

creation_time: datetime

deleted

Whether the currently directory is mark as deleted.

deleted: bool

deleted_time

A datetime object representing when the directory was deleted, in UTC.

deleted_time: datetime | None = None

encryption_scope

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.

encryption_scope: str | None = None

etag

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

etag: str

group

The owning group of the file or directory.

group: str | None = None

last_modified

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

last_modified: datetime

lease

Stores all the lease information for the directory.

lease: LeaseProperties

metadata

Name-value pairs associated with the directory as metadata.

metadata: Dict[str, str]

name

The name of the directory.

name: str

owner

The owner of the file or directory.

owner: str | None = None

permissions

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.

permissions: str | None = None

remaining_retention_days

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

remaining_retention_days: int | None = None