class Stat

Provides functions to interrogate the information returned after a Sys.stat or Sys.lstat call

class attributes [NB. Highlighted attributes are static members]
variable st_dev - The device id
variable st_ino - The inode
variable st_mode - The files protection modes
variable st_nlink - The number of hardlinks
variable st_uid - The user id of the owner
variable st_gid - The group id of owner
variable st_rdev - The device type
variable st_size - The total size in bytes
variable st_blksize - The blocksize for filesystem I/O
variable st_blocks - The number of blocks allocated
variable st_atime - The time of last access
variable st_mtime - The time of the last modification
variable st_ctime - The time of the last change
function Stat() - The constructor
function isDirectory() - Check to see if the file is a directory
function isCharDevice() - Check to see if the file is a character device
function isRegularFile() - Check to see if the file is a regular file
function isBlockDevice() - Check to see if the file is a block device
function isFifo() - Check to see if the file is a fifo
function isLink() - Check to see if the file is a link
function isSocket() - Check to see if the file is a socket
function isSticky() - Check to see if the file has the sticky bit set in it's modes
function isSuid() - Check to see if the file has the suid bit set in it's modes
function isSgid() - Check to see if the file has the sgid bit set in it's modes
function getSize() - Get the size of the file
function getInode() - Get the inode the file is attached to
function getOwnerID() - Get the id of the owner
function getGroupID() - Get the id of the group
function getAccessTime() - Get the time when the file was last accessed
function getChangedTime() - Get the time when the file was last changed
function getModifiedTime() - Get the time when the file was last modified
function getBlockSize() - Get the blocksize for filesystem I/O
function getBlockCount() - Get the number of allocated blocks for the file
function getLinkCount() - Get the number of hardlinks to the file

Functions

function Stat Click to go up to the list
The constructor
Declaration:
    native function Stat( object stat )
Description:
Do not instantiate this a copy of this class directly - use the Sys.stat and Sys.lstat functions

function isDirectory Click to go up to the list
Check to see if the file is a directory
Declaration:
    native function isDirectory( )
Returns:
    'true' if it is, 'false' otherwise

function isCharDevice Click to go up to the list
Check to see if the file is a character device
Declaration:
    native function isCharDevice( )
Returns:
    'true' if it is, 'false' otherwise

function isRegularFile Click to go up to the list
Check to see if the file is a regular file
Declaration:
    native function isRegularFile( )
Returns:
    'true' if it is, 'false' otherwise

function isBlockDevice Click to go up to the list
Check to see if the file is a block device
Declaration:
    native function isBlockDevice( )
Returns:
    'true' if it is, 'false' otherwise

function isFifo Click to go up to the list
Check to see if the file is a fifo
Declaration:
    native function isFifo( )
Returns:
    'true' if it is, 'false' otherwise

function isLink Click to go up to the list
Check to see if the file is a link
Declaration:
    native function isLink( )
Returns:
    'true' if it is, 'false' otherwise

function isSocket Click to go up to the list
Check to see if the file is a socket
Declaration:
    native function isSocket( )
Returns:
    'true' if it is, 'false' otherwise

function isSticky Click to go up to the list
Check to see if the file has the sticky bit set in it's modes
Declaration:
    native function isSticky( )
Returns:
    'true' if it is, 'false' otherwise

function isSuid Click to go up to the list
Check to see if the file has the suid bit set in it's modes
Declaration:
    native function isSuid( )
Returns:
    'true' if it is, 'false' otherwise

function isSgid Click to go up to the list
Check to see if the file has the sgid bit set in it's modes
Declaration:
    native function isSgid( )
Returns:
    'true' if it is, 'false' otherwise

function getSize Click to go up to the list
Get the size of the file
Declaration:
    native function getSize( )
Returns:
    The size of the file

function getInode Click to go up to the list
Get the inode the file is attached to
Declaration:
    native function getInode( )
Returns:
    The inode id

function getOwnerID Click to go up to the list
Get the id of the owner
Declaration:
    native function getOwnerID( )
Returns:
    The id

function getGroupID Click to go up to the list
Get the id of the group
Declaration:
    native function getGroupID( )
Returns:
    The id

function getAccessTime Click to go up to the list
Get the time when the file was last accessed
Declaration:
    native function getAccessTime( )
Returns:
    The time as a number

function getChangedTime Click to go up to the list
Get the time when the file was last changed
Declaration:
    native function getChangedTime( )
Returns:
    The time as a number

function getModifiedTime Click to go up to the list
Get the time when the file was last modified
Declaration:
    native function getModifiedTime( )
Returns:
    The time as a number

function getBlockSize Click to go up to the list
Get the blocksize for filesystem I/O
Declaration:
    native function getBlockSize( )
Returns:
    The blocksize

function getBlockCount Click to go up to the list
Get the number of allocated blocks for the file
Declaration:
    native function getBlockCounr( )
Returns:
    The number of blocks

function getLinkCount Click to go up to the list
Get the number of hardlinks to the file
Declaration:
    native function getLinkCount( )
Returns:
    The number of links

Variables

number st_dev Click to go up to the list
The device id

number st_ino Click to go up to the list
The inode

number st_mode Click to go up to the list
The files protection modes

number st_nlink Click to go up to the list
The number of hardlinks

number st_uid Click to go up to the list
The user id of the owner

number st_gid Click to go up to the list
The group id of owner

number st_rdev Click to go up to the list
The device type

number st_size Click to go up to the list
The total size in bytes

number st_blksize Click to go up to the list
The blocksize for filesystem I/O

number st_blocks Click to go up to the list
The number of blocks allocated

number st_atime Click to go up to the list
The time of last access

number st_mtime Click to go up to the list
The time of the last modification

number st_ctime Click to go up to the list
The time of the last change

Automatically generated at 8:45pm, Wednesday 08 January 2003 by feritedoc.