Meta::Pdmt::FileNode - a node representing a file.


Meta documentation  | view source Contained in the Meta distribution.

Index


NAME

Top

Meta::Pdmt::FileNode - a node representing a file.

COPYRIGHT

Top

LICENSE

Top

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

Top

	MANIFEST: FileNode.pm
	PROJECT: meta
	VERSION: 0.04

SYNOPSIS

Top

	package foo;
	use Meta::Pdmt::FileNode qw();
	my($object)=Meta::Pdmt::FileNode->new();
	my($result)=$object->method();

DESCRIPTION

Top

This is a node in the PDMT graph representing a file in the file system.

FUNCTIONS

Top

	BEGIN()
	md5($)
	exists($)
	remove($)
	mtime($)
	TEST($)

FUNCTION DOCUMENTATION

Top

BEGIN()

This initialization method sets up a default constructor and accessor methods for the following attributes: 1. path - path of the file in the file system.

md5($)

This method overrides the abstract interface in the parent Md5Node and implement a regular file md5 algorithm.

exists($)

This method returns whether the file exists or not.

remove($)

This file removes the current file ("make clean").

mtime($)

This method returns the modification date of the current file. 0 means that the file doesn't exist (or very old).

TEST($)

Test suite for this module.

SUPER CLASSES

Top

Meta::Pdmt::Md5Node(3)

BUGS

Top

None.

AUTHOR

Top

	Name: Mark Veltzer
	Email: mailto:veltzer@cpan.org
	WWW: http://www.veltzer.org
	CPAN id: VELTZER

HISTORY

Top

	0.00 MV web site automation
	0.01 MV SEE ALSO section fix
	0.02 MV bring movie data
	0.03 MV teachers project
	0.04 MV md5 issues

SEE ALSO

Top

Meta::Class::MethodMaker(3), Meta::Digest::MD5(3), Meta::Pdmt::Md5Node(3), Meta::Utils::File::File(3), Meta::Utils::File::Time(3), strict(3)

TODO

Top

Nothing.


Meta documentation  | view source Contained in the Meta distribution.