NAME
Filesys::POSIX::Inode
DESCRIPTION
Provides a base class for filesystem-type dependent inode objects. This class offers a number of methods used to help determine the nature of the inode by analyzing its attributes.
- $inode->dir()
-
Returns a value indicating whether or not the current inode is a directory.
- $inode->link()
-
Returns true if the current inode is a symlink.
- $inode->file()
-
Returns true if the current inode is a regular file.
- $inode->char()
-
Returns true if the current inode is a character device.
- $inode->block()
-
Returns true if the current inode is a block device.
- $inode->fifo()
-
Returns true if the current inode is a Unix FIFO.
- $inode->perms()
-
Returns the permissions bitfield value of the current inode's mode attribute.
- $inode->readable()
-
Returns true if the inode is readable by anyone.
- $inode->writable()
-
Returns true if the inode is writable by anyone.
- $inode->executable()
-
Returns true if the inode is executable by anyone.
- $inode->setuid()
-
Returns true if the inode has a setuid bit set.
- $inode->setgid()
-
Returns true if the inode has a setgid bit set.
- $inode->update(@st)
-
Updates the current inode object with a list of values as returned by stat().
- $inode->directory()
-
If the current inode is a directory, return the directory object held by it. Otherwise, the following exception is issued:
- $inode->empty()
-
Uses the above $inode->directory() call to obtain the directory for the current inode, and returns true if the directory only contains the '..' and '.' members.