NAME

Rapi::Fs::Role::Driver - Role for Rapi::Fs driver classes

SYNOPSIS

  package My::Driver;
  
  use Moo;
  with 'Rapi::Fs::Role::Driver';
  
  ...

DESCRIPTION

This is the role which must be consumed for a class to become a valid Rapi::Fs driver. Most of the code in this role simply consists of interfaces (i.e. method 'requires' statements). For a reference implementation of an actual driver class, see Rapi::Fs::Driver::Filesystem.

ATTRIBUTES

name

args

METHODS

call_node_get

REQUIRES

get_node

Must be defined in subclass - accepts a path string and returns the associated Node object. Must also be able to accept existing Node object arg and return it back to the caller as-is.

node_get_parent

node_get_parent_path

node_get_subnodes

node_get_bytes

node_get_mtime

node_get_fh

node_get_mimetype

node_get_readable_file

SEE ALSO

AUTHOR

Henry Van Styn <vanstyn@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by IntelliTree Solutions llc.

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