NAME
File::Redirect::Base - root for vfs providers
API
- mount ($class, $data, $dev_no)
-
Request to mount $data as pseudo-device number $dev_no. Must return object instance that will receive all further operation requests (see below).
- umount
-
Unmounts device
- Stat $path
-
Return array of 12-items, in the same format as perl's CORE::stat (see perldoc -f stat) on success, and error number integer on failure.
- Open $path, $mode
-
Tries to open $path with $mode. On success must return a glob handle, f.ex. an
IO::Scalar
object emulating the file. On failure must return error number integer. - Close $handle
-
Optional; implements close(2) semantics - on successful operation must return 0, error number integer otherwise.