/usr/share/perl5/AAT/FS.pm is in octopussy 1.0.6-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | # $HeadURL$
# $Revision: 355 $
# $Date: 2010-05-26 17:54:46 +0100 (Wed, 26 May 2010) $
# $Author: sebthebert $
=head1 NAME
AAT::FS - AAT FileSystem module
=cut
package AAT::FS;
use strict;
use warnings;
use AAT::Application;
=head1 FUNCTIONS
=head2 Directory_Files($dir, $pattern)
Returns Files List from Directory '$dir' that match '$pattern'
=cut
sub Directory_Files
{
my ($dir, $pattern) = @_;
my @files = ();
if (opendir DIR, $dir)
{
@files = grep { /$pattern/ } readdir DIR;
closedir DIR;
}
return (sort @files);
}
=head2 File($file)
Returns Configuration filename for file '$file'
=cut
sub File
{
my $file = shift;
return (AAT::Application::File('AAT', $file));
}
1;
=head1 SEE ALSO
AAT(3), AAT::DB(3), AAT::Syslog(3), AAT::Theme(3), AAT::Translation(3), AAT::User(3)
=head1 AUTHOR
Sebastien Thebert <octo.devel@gmail.com>
=cut
|