on_resource_list Event
Fires once for each resource returned when listing resources.
Syntax
class AzureFileResourceListEventParams(object): @property def name() -> str: ... @property def path() -> str: ... @property def share() -> str: ... @property def resource_type() -> int: ... @property def modified_time() -> str: ... @property def size() -> int: ... @property def e_tag() -> str: ... # In class AzureFile: @property def on_resource_list() -> Callable[[AzureFileResourceListEventParams], None]: ... @on_resource_list.setter def on_resource_list(event_hook: Callable[[AzureFileResourceListEventParams], None]) -> None: ...
Remarks
This event fires once for each resource returned when list_resources, get_file_info, or get_folder_info is called.
Name is the name of the resource.
Path is the full path of the resource (not including the share).
Share is the name of the share the resource resides in.
ResourceType reflects the resource's type. Possible values are:
0 (afrtFile) | A file. |
1 (afrtFolder) | A folder. |
ModifiedTime is the last modified time of the resource, formatted according to RFC 1123. (Note: this parameter is not populated by calls to list_resources.)
Size is the size of the file. Always 0 for folders.
ETag is the ETag of the resource. (Note: this parameter is not populated by calls to list_resources.)