File::Attributes

File::Attributes is a Perl module to manipulate file metadata.
Download

File::Attributes Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jonathan Rockway
  • Publisher web site:
  • http://search.cpan.org/~jrockway/

File::Attributes Tags


File::Attributes Description

File::Attributes is a Perl module to manipulate file metadata. File::Attributes is a Perl module to manipulate file metadata.SYNOPSIS use File::Attributes qw(set_attribute list_attributes get_all_attributes); my $file = 'foo.txt'; set_attribute($file, type => 'text/plain'); set_attribute($file, encoding => 'utf8'); my @attributes = list_attributes($file); # @attributes = qw(type encoding) %attributes = get_attributes($file); # $attributes{type} will be 'text/plain' # $attributes{foo} will be undefined.File::Attributes is a wrapper around modules in the File::Attributes hierarchy. If you use this module directly (instead of one of the aforementioned decendants), then your attribute manipulations will Just Work, regardless of the underlying filesystem.Module::Pluggable is used to find all File::Attributes:: modules that inherit from File::Attributes::Base and that are applicable on your system. If it finds one, it uses that. If not, it uses File::Attributes::Simple, which is bundled with this module and works everywhere.As of version 0.04, plugins are now set up per-file, not per-system. This means that if you have File::Attributes::Extended installed, extended attributes will be used where available, but Simple attributes will be used on files where extended attributes don't work (a FAT filesytem on a Linux machine, for example). Existing simple attributes will be read even if extended attributes are available, but writes will affect only the extended attributes.This means that you can switch to a better attribute plugin at any time, without losing any old data! Requirements: · Perl


File::Attributes Related Software