Help language development. Donate to The Perl Foundation

File::Stat cpan:ELCARO last updated on 2019-05-02



File::Stat - Get file status


Implements a File::Stat class, and an exportable stat function that will return a File::Stat object.

This object has methods that return the similarly named structure field name from the stat(2) function; namely: dev, ino, mode, nlink, uid, gid, rdev, size, atime, mtime, ctime, blksize, and blocks.

```perl-6 use File::Stat ;

say => $?FILE).mode;

say stat($?FILE).uid



This module is uses underlying NQP ops, and will likely function incorrectly on non-POSIX systems.