libssh 0.12.0
The SSH library
Loading...
Searching...
No Matches
sftp_attributes_struct Struct Reference

SFTP file attributes structure. More...

#include <sftp.h>

Data Fields

char * name
char * longname
uint32_t flags
uint8_t type
uint64_t size
uint32_t uid
uint32_t gid
char * owner
char * group
uint32_t permissions
uint64_t atime64
uint32_t atime
uint32_t atime_nseconds
uint64_t createtime
uint32_t createtime_nseconds
uint64_t mtime64
uint32_t mtime
uint32_t mtime_nseconds
ssh_string acl
uint32_t extended_count
ssh_string extended_type
ssh_string extended_data

Detailed Description

SFTP file attributes structure.

This type represents file attributes. It is used both for sending and receiving file attributes from the server.

flags determines which of the struct fields are present.

See also
sftp_attributes_free()

Field Documentation

◆ acl

ssh_string sftp_attributes_struct::acl

ACL data (requires SFTP v4 with flag SSH_FILEXFER_ATTR_ACL)

◆ atime

uint32_t sftp_attributes_struct::atime

Access time (requires SFTP v3 with flag SSH_FILEXFER_ATTR_ACMODTIME)

◆ atime64

uint64_t sftp_attributes_struct::atime64

Access time (requires SFTP v4 with flag SSH_FILEXFER_ATTR_ACCESSTIME)

◆ atime_nseconds

uint32_t sftp_attributes_struct::atime_nseconds

Access time nanoseconds (requires SFTP v4 with flag SSH_FILEXFER_ATTR_SUBSECOND_TIMES)

◆ createtime

uint64_t sftp_attributes_struct::createtime

Creation time (requires SFTP v4 with flag SSH_FILEXFER_ATTR_CREATETIME)

◆ createtime_nseconds

uint32_t sftp_attributes_struct::createtime_nseconds

Creation time nanoseconds (requires SFTP v4 with flag SSH_FILEXFER_ATTR_SUBSECOND_TIMES)

◆ extended_count

uint32_t sftp_attributes_struct::extended_count

Unused

◆ extended_data

ssh_string sftp_attributes_struct::extended_data

Unused

◆ extended_type

ssh_string sftp_attributes_struct::extended_type

Unused

◆ flags

uint32_t sftp_attributes_struct::flags

Determines which of the struct fields are present

◆ gid

uint32_t sftp_attributes_struct::gid

Group ID (requires SFTP v3 with flag SSH_FILEXFER_ATTR_UIDGID)

◆ group

char* sftp_attributes_struct::group

File group (requires SFTP v4 with flag SSH_FILEXFER_ATTR_OWNERGROUP or SFTP v3 with OpenSSH)

◆ longname

char* sftp_attributes_struct::longname

Extended name i.e output of ls -l (requires SFTP v3 with OpenSSH)

◆ mtime

uint32_t sftp_attributes_struct::mtime

Modification time (requires SFTP v3 with flag SSH_FILEXFER_ATTR_ACMODTIME)

◆ mtime64

uint64_t sftp_attributes_struct::mtime64

Modification time (requires SFTP v4 with flag SSH_FILEXFER_ATTR_MODIFYTIME)

◆ mtime_nseconds

uint32_t sftp_attributes_struct::mtime_nseconds

Modification time nanoseconds (requires SFTP v4 with flag SSH_FILEXFER_ATTR_SUBSECOND_TIMES)

◆ name

char* sftp_attributes_struct::name

File name

◆ owner

char* sftp_attributes_struct::owner

File owner (requires SFTP v4 with flag SSH_FILEXFER_ATTR_OWNERGROUP or SFTP v3 with OpenSSH)

◆ permissions

uint32_t sftp_attributes_struct::permissions

File permissions (requires flag SSH_FILEXFER_ATTR_PERMISSIONS)

◆ size

uint64_t sftp_attributes_struct::size

File size (requires flag SSH_FILEXFER_ATTR_SIZE)

◆ type

uint8_t sftp_attributes_struct::type

File type

◆ uid

uint32_t sftp_attributes_struct::uid

User ID (requires SFTP v3 with flag SSH_FILEXFER_ATTR_UIDGID)


The documentation for this struct was generated from the following file:
  • /home/asn/workspace/prj/oss/libssh/asn-docs/include/libssh/sftp.h