U
vù¾fB ã @ s: d dl Z d dlZd dlmZmZmZmZ G dd„ dƒZdS )é N)Ú x80000000Úo700Úo70Ú xffffffffc @ s† e Zd ZdZdZdZdZdZeZ dd„ Z
edd d
„ƒZdd„ Z
edd
d„ƒZdd„ Zdd„ Zdd„ Zeddd„ƒZdd„ Zdd„ ZdS )ÚSFTPAttributesai
Representation of the attributes of a file (or proxied file) for SFTP in
client or server mode. It attempts to mirror the object returned by
`os.stat` as closely as possible, so it may have the following fields,
with the same meanings as those returned by an `os.stat` object:
- ``st_size``
- ``st_uid``
- ``st_gid``
- ``st_mode``
- ``st_atime``
- ``st_mtime``
Because SFTP allows flags to have other arbitrary named attributes, these
are stored in a dict named ``attr``. Occasionally, the filename is also
stored, in ``filename``.
é é é é c C s4 d| _ d| _d| _d| _d| _d| _d| _i | _dS )zX
Create a new (empty) SFTPAttributes object. All fields will be empty.
r N)Ú_flagsÚst_sizeÚst_uidÚst_gidÚst_modeÚst_atimeÚst_mtimeÚattr©Úself© r úC/opt/alt/python38/lib/python3.8/site-packages/paramiko/sftp_attr.pyÚ__init__1 s zSFTPAttributes.__init__Nc C sH | ƒ }|j |_ |j|_|j|_|j|_|j|_|j|_|dk rD||_|S )a`
Create an `.SFTPAttributes` object from an existing ``stat`` object (an
object returned by `os.stat`).
:param object obj: an object returned by `os.stat` (or equivalent).
:param str filename: the filename associated with this file.
:return: new `.SFTPAttributes` object with the same attribute fields.
N)r r
r r r r Úfilename)ÚclsÚobjr r r r r Ú from_stat> s
zSFTPAttributes.from_statc C s d | ¡ ¡S )Nz