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.02
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()
exist($)
remove($)
date($)
uptodate($$)
TEST($)
FUNCTION DOCUMENTATION
- BEGIN()
-
This initialization method sets up a default constructor and accessor methods for the following attributes: 1. path. 2. md5
- exist($)
-
This method returns whether the file exists or not.
- remove($)
-
This file removes the current file ("make clean").
- date($)
-
This method returns the modification date of the current file.
- uptodate($$)
-
This is an overriding method to implement what does it mean for a disk file to be up to date.
- TEST($)
-
Test suite for this module.
SUPER CLASSES
Meta::Pdmt::Node(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
SEE ALSO
Meta::Class::MethodMaker(3), Meta::Pdmt::Node(3), Meta::Utils::File::File(3), Meta::Utils::File::Time(3), strict(3)
TODO
Nothing.