|
CGI::Bus::fut - File and directory utils library |
CGI::Bus::fut - File and directory utils library
use CGI::Bus; $s =CGI::Bus->new(); $s->fut->mkdir(directory);
This module contains several file and directory methods. See CGI::Bus::Base for inherited slots and methods.
copy, delete, find, glob, globn, mkdir, rmpath, size
fcompare, fhandle,
fload, fstore,
fdumpload, fdumpstore
None
fstore, fload,
CGI::Bus::dumpout, CGI::Bus::dumpin
sub(\@stat,path,name)...) -> num_matchesfind call.
Uses FileGlob
Options: 'i'gnore stat errors, '!' - not, 'd'irectories, 'l'ow before deep scan, 'm'ountpoints, 'r'ecurse directories, 's'ymlinks.
Parameters of sub are local $_ with full current filename, $_[0] with reference to @stat array, $_[1] with path, $_[2] with filename. Sub can return undefined value in $_ to signal stop, determine directories with $_[0]->[2] & 0040000, prevent recursing by assigning $_[0]->[2] =0.
If sub is defined, it is evaluated for each row read into local $_, and with '-a' option results of each evaluation are returned as a list, true is returned otherwise.
glob function.
When $^O eq 'MSWin32' own implementation with fragments from
File::DosGlob is used, else glob is called.
glob, but returns list of names only, without paths
find and it's options.
Implemented and Documented.
Andrew V Makarow <makarow at mail.com>
|
CGI::Bus::fut - File and directory utils library |