NAME

Chirp::Stat - Perl Chirp file stat information, much like Unix stat structure.

SYNOPSIS

The objects and methods provided by this package correspond to the native C API in chirp_types.h. This module is automatically loaded with Chirp::Client.

Chirp::Stat objects are not be created directly, but instead are the result of calling Chirp::Client::stat and Chirp::Client::ls.

head1 EXAMPLE

use Chirp::Client;
my $client = Chip::Client->new(localhost => 'localhost:9000');
my $s = $client->stat('/myfile.txt');
print $s->size, "\n";

METHODS

Chirp::Stat

path

The target path.

device

ID of device containing file.

inode

inode number

mode

file mode permissions

number of hard links

uid

user ID of owner

gid

group ID of owner

rdev

device ID if special file

size

total size, in bytes

blksize

block size for file system I/O

blocks

number of 512B blocks allocated

atime

number of seconds since epoch since last access

mtime

number of seconds since epoch since last modification

ctime

number of seconds since epoch since last status change