Filesys::Virtual::FFRIndexed - export an FFRIndexed database as file system
my $fs = Filesys::Virtual::FFRIndexed->new();
$fs->new $ARGREFInstantiates a new filesystem instance.
The following keys in $ARGREF are recognized:
root_path - a string that will be prepended/stripped before FFRIndexed is queried
This should enable "mounting" the FFRIndexed tree/graph anywhere in
an existing L<Filesys::Virtual> tree.
This parameter currently gets ignored though.
index - a preinitialized L<FFRIndexed> instance. If this is not
given, a fresh instance will be created.
cwd - current path
columns - the columns used for refinements
The remaining arguments are passed immediately through to the FFRIndexed instance.
$fs->loginDoes nothing
$fs->cwdReturns the current (query) path.
$fs->root_pathReturns the root_path, the root of this file system.
$fs->chmodUnimplemented - the file system is readonly
$fs->modtime $fileReturns the time of last modification of $file
Currently implemented as a stub that always returns 0.
$fs->size $fileReturns the size in bytes of $file
Currently implemented as a stub that always returns 0.
$fs->delete $fileUnimplemented - the file system is readonly
$fs->chdir $dirRefines the query.
$fs->requery $directoryReturns the cached $query object if $directory is equal to $cwd.
$fs->get_query $directoryUnconditionally retrieves the FFRIndexed object for a query path.
$fs->folder_contentsReturns a list of objects representing the current contents of the folder and additionally all subfolders.
$fs->mkdir $dirUnimplemented - the file system is readonly
$fs->rmdir $dirUnimplemented - the file system is readonly
$fs->list $dirReturns the names of the contents of the directory as a (sorted) list.
If $dir actually is a file, its name is returned.
$fs->list_details $dirReturns the names of the contents of the directory as a list in ls -l format (which is then, subsequently, unpacked again from the wrapping application ...).
$fs->ls_stat $itemReturns a string containing $item in ls -l format
$fs->stat $fileReturns the information as a stat call would
Currently implemented as a list of nine zeroes.
$fs->test $test, $itemPerforms the file system test $test on $item