mod_perl logo
perl icon







previous page: APR::Date - Perl API for XXXpage up: mod_perl APIsnext page: APR::NetLib - Perl API for XXX


APR::Finfo - Perl API for XXX











The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes
mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford
Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

By Lincoln Stein, Doug MacEachern


Table of Contents

Synopsis

  use APR::Finfo ();

META: to be completed



TOP

Description

META: to be completed



TOP

API

APR::Finfo provides the following functions and/or methods:



TOP

stat

META: Autogenerated - needs to be reviewed/completed

get the specified file's stats. The file is specified by filename, instead of using a pre-opened file.

  $ret = $finfo->stat($fname, $wanted, $cont);


TOP

pool

META: Autogenerated - needs to be reviewed/completed

Allocates memory and closes lingering handles in the specified pool

  $ret = $obj->pool($newval);


TOP

valid

META: Autogenerated - needs to be reviewed/completed

The bitmask describing valid fields of this apr_finfo_t structure including all available 'wanted' fields and potentially more

  $ret = $obj->valid($newval);


TOP

protection

META: Autogenerated - needs to be reviewed/completed

The access permissions of the file. Mimics Unix access rights.

  $ret = $obj->protection($newval);


TOP

filetype

META: Autogenerated - needs to be reviewed/completed

The type of file. One of APR_REG, APR_DIR, APR_CHR, APR_BLK, APR_PIPE, APR_LNK or APR_SOCK. If the type is undetermined, the value is APR_NOFILE. If the type cannot be determined, the value is APR_UNKFILE.

  $ret = $obj->filetype($newval);


TOP

user

META: Autogenerated - needs to be reviewed/completed

The user id that owns the file

  $ret = $obj->user($newval);


TOP

group

META: Autogenerated - needs to be reviewed/completed

The group id that owns the file

  $ret = $obj->group($newval);


TOP

inode

META: Autogenerated - needs to be reviewed/completed

The inode of the file.

  $ret = $obj->inode($newval);


TOP

device

META: Autogenerated - needs to be reviewed/completed

The id of the device the file is on.

  $ret = $obj->device($newval);


TOP

nlink

META: Autogenerated - needs to be reviewed/completed

The number of hard links to the file.

  $ret = $obj->nlink($newval);


TOP

size

META: Autogenerated - needs to be reviewed/completed

The size of the file

  $ret = $obj->size($newval);


TOP

csize

META: Autogenerated - needs to be reviewed/completed

The storage size consumed by the file

  $ret = $obj->csize($newval);


TOP

atime

META: Autogenerated - needs to be reviewed/completed

The time the file was last accessed

  $ret = $obj->atime($newval);


TOP

mtime

META: Autogenerated - needs to be reviewed/completed

The time the file was last modified

  $ret = $obj->mtime($newval);


TOP

ctime

META: Autogenerated - needs to be reviewed/completed

The time the file was last changed

  $ret = $obj->ctime($newval);


TOP

fname

META: Autogenerated - needs to be reviewed/completed

The pathname of the file (possibly unrooted)

  $ret = $obj->fname($newval);


TOP

name

META: Autogenerated - needs to be reviewed/completed

The file's name (no path) in filesystem case

  $ret = $obj->name($newval);


TOP

See Also

mod_perl 2.0 documentation.



TOP

Copyright

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 1.1.



TOP

Authors

The mod_perl development team and numerous contributors.







TOP
previous page: APR::Date - Perl API for XXXpage up: mod_perl APIsnext page: APR::NetLib - Perl API for XXX