Manual Reference Pages - FILE::ATTRIBUTES::SIMPLE (3)
File::Attributes::Simple - the simplest implementation of File::Attributes
This is the fallback for File::Attributes if it cant find anything
better. It stores attributes as YAML files (named
.filename.attributes) containing key/value pairs.
You probably shouldnt use this class directly, see
All the standard ones, namely:
Applicable for every file.
Priority 1 (low).
If you want to implement a file attribute scheme, and can do so doing
hashrefs, this class might make your life easier. Simply subclass
File::Attributes::Simple (this class), and override the following
I think OS X uses a format for storing filesystem attributes that
could be implemented by overriding this class, but I dont have a Mac
and couldnt find any documentation.
If you just want the attributes to be stored somewhere else, override
this method. It takes a filename and returns the filename that stores
the attributes. If you override _load and _save, you dont need to
worry about this method; it isnt called from anywhere else.
This method takes a filename and returns the hash(ref) of attributes.
This method takes a filename and the attributes hashref and stores it
to disk (or wherever, the method doesnt care if its a disk or not).
See bug reporting instructions in BUGS in File::Attributes.
Jonathan Rockway <jrockway at cpan.org>
|perl v5.20.3 ||FILE::ATTRIBUTES::SIMPLE (3) ||2007-02-04 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.