VFS::Filesystem - A virtual filesystem layer for Perl


VFS documentation Contained in the VFS distribution.

Index


Code Index:

NAME

Top

VFS::Filesystem - A virtual filesystem layer for Perl

SYNOPSIS

Top

	Unimplemented.

DESCRIPTION

Top

An implementation of a virtual file system in Perl. It will allow creation, reading and writing of files, mounting of systems in other systems, ...


VFS documentation Contained in the VFS distribution.

package VFS::Filesystem;

use strict;
use VFS::File;

sub new {
	my $class = shift;
	my $self = ($#_ == 0) ? { %{ (shift) } } : { @_ };
	return bless $self, $class;
}

sub open {
	my ($self, $path, $attr) = @_;
	return new VFS::File();
}

sub remove {
	my ($self, $path, $attr) = @_;
	return undef;
}

sub create {
	my ($self, $path, $attr) = @_;
	return new VFS::File();
}

sub link {
	return 1;
}

sub mount {
	my ($self, $fs, $dir, $attr) = @_;
}

sub umount {
	my ($self, $dir) = @_;
}

1;
__END__;