File Attributes 0.1
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
Related Downloads:
Today's Top Linux Application
HaveFnuBB
1.3.0
HaveFnuBB is an open source bulletin board software with the goals of being fast, light and fun. Its strength resides in the modules that you can add to extend its functionality. Why another Forum when there are some many others arround the web ? because HaveFnuBB ! is the only forum software that uses the Jelix Framework PHP5 Here are some key features of "HaveFnuBB": Forum: · Wiki Syntax · Sub-Forum...
