14 Nov 2007 07:23:55 UTC
- Distribution: File-Tasks
- Module version: 0.07
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (472 / 2 / 0)
- KwaliteeBus factor: 1
- 64.48% Coverage
- License: perl_5
- Perl: v5.5.0
- Activity24 month
- Download (30.1KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionADAMK Adam Kennedy
File::Tasks::Add - A File::Tasks task to add a new file
Objects of this class represent the addition of a new file to the filesystem. Specifically, they mean the creation of a new file where no existing file should exist.
Thus, when applying the task to a filesystem, it is first checked to ensure there is no existing file accidentally in the way.
Creates a new
File::Tasks::Addobject, although you probably won't be creating this object directly from here.
Returns a new
Returns the task type, which is always 'Add'.
pathaccessor returns the path to the file within the set of tasks.
sourceaccessor returns the content source, which could be anything supported by File::Tasks::Provider.
testmethod checks to see if the file can be added.
Returns true if so, or false if not.
executemethod executes the task on the local filesystem.
Returns true on success or
contentmethod returns the content that is to be written to the file.
Bugs should be reported via the CPAN bug tracker at
For other issues, contact the author.
Adam Kennedy <email@example.com>, http://ali.as/
Copyright 2005 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.