NAME
Meta::Pdmt::FileNode - a node representing a file.
COPYRIGHT
Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.
LICENSE
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
MANIFEST: FileNode.pm
PROJECT: meta
VERSION: 0.04
SYNOPSIS
package foo;
use Meta::Pdmt::FileNode qw();
my($object)=Meta::Pdmt::FileNode->new();
my($result)=$object->method();
DESCRIPTION
This is a node in the PDMT graph representing a file in the file system.
FUNCTIONS
BEGIN()
md5($)
exists($)
remove($)
mtime($)
TEST($)
FUNCTION DOCUMENTATION
- 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
Meta::Pdmt::Md5Node(3)
BUGS
None.
AUTHOR
Name: Mark Veltzer
Email: mailto:veltzer@cpan.org
WWW: http://www.veltzer.org
CPAN id: VELTZER
HISTORY
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
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
Nothing.