FFI interface to stat function
use Stat::FFI;
my $stat = Stat::FFI->new;
$stat->stat('file.txt');
my $st_dev = $stat->st_dev;
This module provides an (incomplete) interface to the stat record used to provide meta data about files in Unix like operating systems.
It is not a useful module, since Perl has its own built in implementation of stat, but is intended to demonstrate capability of FFI::Platypus and Module::Build::FFI.
my $stat = Stat::FFI->new;
Create a new instance of the stat object.
my $st_dev = $stat->st_dev;
Get the st_dev attribute.
$stat->stat($filename);
Queries the operating system to get the meta data for the given file.
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2014 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.