Help language development. Donate to The Perl Foundation

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

File-Stat-0.0.1/

NAME

File::Stat - Get file status

SYNOPSIS

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::Stat.new(path => $?FILE).mode;

say stat($?FILE).uid

```

CAVEATS

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