Method _Stdio.Stat()->create()

class _Stdio.Stat

Method create

_Stdio.Stat _Stdio.Stat(void|object|program|mapping|array stat)

Description

A new Stdio.Stat object can be initialized in several ways:

  • stat is an object (typically another Stdio.Stat), a program, or a mapping. The stat info is copied by getting the value of each of the items in the first struct stat list in the class doc above (mode, size, uid, gid, atime, mtime, ctime, ino, nlink, dev, rdev, etc) that is defined in stat. The derived items (isreg, isdir, type, mode_string, etc) are not copied this way, since mode already determines them.

  • stat is a seven element array on the 'traditional' LPC stat-array form (see the class doc).