NAME

File::Information::Inode - generic module for extrating information from filesystems

VERSION

version v0.01

SYNOPSIS

use File::Information;

METHODS

filesystem

my File::Information::Filesystem $filesystem = $inode->filesystem([ %opts ]);

Provides access to the filesystem object for the filesystem this inode is on. Dies if no filesystem could be found.

Takes the following options (all optional):

default

The value to be returned when no filesystem could be found. This can also be undef which switches from die-ing when no value is available to returning undef.

peek

my $data = $inode->peek( [ %opts ] );

Peeks the first few bytes of a file. The main usage of this method is to check for magic numbers.

The following options (all optional) are supported:

wanted

The number of bytes wanted. If this number of bytes can't be provided less is returned.

required

The number of bytes that are needed. If this number of bytes can't be provided the method dies.

AUTHOR

Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2024 by Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)