GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::SFTP::ATTRIBUTES (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



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



DESCRIPTION

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

USAGE

Net::SFTP::Attributes->new( [ CW%args ] )

Constructs a new Net::SFTP::Attributes object and returns that object.

%args is optional; if not provided the object will be initialized with the default values. If provided, %args can contain:
o Stat

A reference to the return value of the built-in stat function. The values in the Net::SFTP::Attributes object will be initialized from the values in the stat array, and the flags will be set appropriately.

o Buffer

A Net::SFTP::Buffer object containing a serialized attribute object. The Net::SFTP::Attributes object will be initialized from the values in the serialized string, and flags will be set appropriately.

CW$attrs->as_buffer

Serializes the Attributes object $attrs into string form, using the flags in the object to determine what fields get placed in the buffer. Returns a Net::SFTP::Buffer object.

CW$attrs->flags( [ CW$value ] )

Get/set the value of the flags in $attrs.

CW$attrs->size( [ CW$value ] )

Get/set the value of the file size (in bytes) in $attrs.

CW$attrs->uid( [ CW$value ] )

Get/set the value of the UID in $attrs.

CW$attrs->gid( [ CW$value ] )

Get/set the value of the GID in $attrs.

CW$attrs->perm( [ CW$value ] )

Get/set the value of the permissions in $attrs.

CW$attrs->atime( [ CW$value ] )

Get/set the value of the last access time (atime) in $attrs.

CW$attrs->mtime( [ CW$value ] )

Get/set the value of the last modified time (mtime) in $attrs.

AUTHOR & COPYRIGHTS

Please see the Net::SFTP manpage for author, copyright, and license information.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::SFTP::ATTRIBUTES (3) 2001-05-16

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.