1Net::SFTP::Attributes(3U)ser Contributed Perl DocumentatiNoent::SFTP::Attributes(3)
2
3
4

NAME

6       Net::SFTP::Attributes - File/directory attribute container
7

SYNOPSIS

9           use Net::SFTP::Attributes;
10           my $attrs = Net::SFTP::Attributes->new(Stat => [ stat "foo" ]);
11           my $size = $attrs->size;
12

DESCRIPTION

14       Net::SFTP::Attributes encapsulates file/directory attributes for
15       Net::SFTP. It also provides serialization and deserialization methods
16       to encode/decode attributes into Net::SFTP::Buffer objects.
17

USAGE

19   Net::SFTP::Attributes->new( [ %args ] )
20       Constructs a new Net::SFTP::Attributes object and returns that object.
21
22       %args is optional; if not provided the object will be initialized with
23       the default values. If provided, %args can contain:
24
25       ·   Stat
26
27           A reference to the return value of the built-in stat function. The
28           values in the Net::SFTP::Attributes object will be initialized from
29           the values in the stat array, and the flags will be set
30           appropriately.
31
32       ·   Buffer
33
34           A Net::SFTP::Buffer object containing a serialized attribute
35           object. The Net::SFTP::Attributes object will be initialized from
36           the values in the serialized string, and flags will be set
37           appropriately.
38
39   $attrs->as_buffer
40       Serializes the Attributes object $attrs into string form, using the
41       flags in the object to determine what fields get placed in the buffer.
42       Returns a Net::SFTP::Buffer object.
43
44   $attrs->flags( [ $value ] )
45       Get/set the value of the flags in $attrs.
46
47   $attrs->size( [ $value ] )
48       Get/set the value of the file size (in bytes) in $attrs.
49
50   $attrs->uid( [ $value ] )
51       Get/set the value of the UID in $attrs.
52
53   $attrs->gid( [ $value ] )
54       Get/set the value of the GID in $attrs.
55
56   $attrs->perm( [ $value ] )
57       Get/set the value of the permissions in $attrs.
58
59   $attrs->atime( [ $value ] )
60       Get/set the value of the last access time (atime) in $attrs.
61
62   $attrs->mtime( [ $value ] )
63       Get/set the value of the last modified time (mtime) in $attrs.
64

AUTHOR & COPYRIGHTS

66       Please see the Net::SFTP manpage for author, copyright, and license
67       information.
68
69
70
71perl v5.28.1                      2017-04-18          Net::SFTP::Attributes(3)
Impressum