RPM::Files(3)

NAME
RPM::Files

DESCRIPTION
A files set iterator.

FUNCTIONS

  new($header)
Create a new RPM::Files iterator from $header. $header is a RPM::Header object.

  $files->count
Return the count of files inside the iterator.

  $files->init
Prepare the file iterator for first next call

  $files->next
Jump to next entry and return current internal index. The function return "OEO" instead 0, which is true. Return nothing when last entry is reached.

  $files->count_dir
Return the number of parent directory.

  $files->init_dir
Preprare iterator for next_dir first call

  $files->next_dir
Jump to next entry and return current internal index. The function return "OEO" instead 0, which is true. Return nothing when last entry is reached.

  $files->filename
Return the current filename

  $files->basename
Return the current basename

  $files->dirname
Return the parent directory path of current file

  $files->fflags
Return the rpm file flags fo current file

  $files->mode
Return the (unix) mode of current file

  $files->digest
Return the digest of the file and the id of used algorythm.

  $files->link
If the current file is a symlink, return the target path.

  $files->user
Return the owner of the file.

  $files->group
Return the group owning the file.

  $files->inode
Return the inode number of the file.

  $files->size
Return the size of the current file.

  $files->dev
Return de device ID where the file is located.

  $files->color
Return de file color of the current file.

  $files->class
Return the class of the current file, aka the mime type as given by file(1).

  $files->mtime
Return the modification time of the current file.

AUTHOR
Olivier Thauvin <nanardon@nanardon.zarb.org>

LICENSE
This software is under GPL, refer to rpm license for details.