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
File::Attributes::Recursive(3) User Contributed Perl Documentation File::Attributes::Recursive(3)

File::Attributes::Recursive - Inherit file attributes from parent directories.

Version 0.02

Works like "File::Attributes", but will recurse up the directory tree until a matching attribute is found.

None, by default. Specify the functions you'd like to use as arguments to the module. ":all" means export everything.

Returns the value of attribute $attribute. If $top is specified, then the search will terminate when the path no longer contains $top. (i.e. if $file is "/foo/bar/baz/quux" and $top is

Returns a hash of key value pairs for all attributes that apply to $file. Only the closest attributes are returned. Given:

      /a            (a = yes, foo = bar)
      /a/b          (b = yes, foo = baz)
      /a/b/c        (c = yes)

"get_attributes_recursively('/a/b/c', '/a')" will return:

     (a => yes, b => yes, c => yes, foo => baz).

The "foo => bar" is masked by the "closer" "foo => baz".

Returns a list of attributes that are defined and apply to $file. Like "keys get_attributes_recursively($file, [$top])", but faster.

There are two possible ways for this function to behave -- either recurse until the attribute is removed, or recurse to "top", removing the attribute at each level. The first doesn't make sense, and the second is dangerous. If you need this function, write it for the specific needs of your application; I think that's the safest thing to do.

(Note that "rm" refuses to "rm ..", so I think there's some precedent here.)

Jonathan Rockway, "<jrockway at cpan.org>"

Please report any bugs or feature requests to "bug-file-attributes-recursive at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Attributes-Recursive>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.

    perldoc File::Attributes::Recursive

You can also look for information at:

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/File-Attributes-Recursive>

  • CPAN Ratings

    <http://cpanratings.perl.org/d/File-Attributes-Recursive>

  • RT: CPAN's request tracker

    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=File-Attributes-Recursive>

  • Search CPAN

    <http://search.cpan.org/dist/File-Attributes-Recursive>

Copyright 2006 Jonathan Rockway, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2006-10-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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