GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  FILE::ATTRIBUTES::SIMPLE (3)

.ds Aq ’

NAME

File::Attributes::Simple - the simplest implementation of File::Attributes

CONTENTS

SYNOPSIS

This is the fallback for File::Attributes if it can’t find anything better. It stores attributes as YAML files (named .filename.attributes) containing key/value pairs.

You probably shouldn’t use this class directly, see File::Attributes instead.

METHODS

All the standard ones, namely:

    get

    set

    unset

    list

    applicable

Applicable for every file.

    priority

Priority 1 (low).

EXTENDING

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 (private) methods:
_attribute_file($filename) 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 don’t need to worry about this method; it isn’t called from anywhere else.
_load($filename) This method takes a filename and returns the hash(ref) of attributes.
_save($filename, \%attributes) This method takes a filename and the attributes hashref and stores it to disk (or wherever, the method doesn’t care if it’s a disk or not).
I think OS X uses a format for storing filesystem attributes that could be implemented by overriding this class, but I don’t have a Mac and couldn’t find any documentation.

BUGS

See bug reporting instructions in BUGS in File::Attributes.

AUTHOR

Jonathan Rockway <jrockway at cpan.org>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 FILE::ATTRIBUTES::SIMPLE (3) 2007-02-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.