Padre::Task::File(3pm) User Contributed Perl Documentation Padre::Task::File(3pm)NAME
Padre::Task::File - File operations in the background
SYNOPSIS
# Recursively delete
Padre::Task::File->new(
remove => 'C:fooaraz',
)->schedule;
DESCRIPTION
The File::Remove CPAN module is a specialised package for deleting files or recursively deleting directories.
As well as providing the basic support for recursive deletion, it adds several other important features such as removing readonly limits on
the fly, taking ownership of files if permitted, and moving the current working directory out of the deletion path so that directory
cursors won't block the deletion (a particular problem on Windows).
The task takes the name of a single file or directory to delete (for now), and proceeds to attempt a recursive deletion of the file or
directory via the File::Remove "remove" method.
In the future, this module will also support more types of file operations and support the execution of a list of operations.
METHODS
new
my $task = Padre::Task::File->new(
remove => '/foo/bar/baz',
);
Creates a new deletion task.
Takes a single parameter "remove" which must be an absolute path to the file to delete (as the "current directory" may change between the
time the removal task is created and when it is executed).
remove
The "remove" accessor returns the absolute path of the file or directory the task will try to delete (or tried to delete in the case of
completed tasks).
SEE ALSO
Padre, Padre::Task, File::Remove
COPYRIGHT
Copyright 2008-2012 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.14.2 2012-06-27 Padre::Task::File(3pm)
Check Out this Related Man Page
Padre::Help(3pm) User Contributed Perl Documentation Padre::Help(3pm)NAME
Padre::Help - Padre Help Provider API
DESCRIPTION
The "Padre::Help" class provides a base class, default implementation and API documentation for help provision support in Padre.
In order to setup a help system for a document type called "XYZ" one has to do the following: Create a module called "Padre::Help::XYZ"
that subclasses the "Padre::Help" module and override 3 methods: "help_init", "help_list" and "help_render".
In the class representing the Document ("Padre::Document::XYZ") one should override the "get_help_provider" method and return an object of
the help provide module. In our case it should contain
require Padre::Help::XYZ;
return Padre::Help::XYZ->new;
(TO DO: Maybe it should only return the name of the module)
The "help_init" method is called by the new method of "Padre::Help" once for every document of "XYZ" kind. (TO DO: maybe it should be only
once for every document type, and not once for every document of that type).
"help_list" should return a reference to an array holding the possible strings the system can provide help for.
"help_render" is called by one of the keywords, it should return the HTML to be displayed as help and another string which is the location
of the help. Usually a path to a file that will be used in the title of the window.
perl v5.14.2 2012-06-27 Padre::Help(3pm)
Hi there,
I have numerous files in a directory (approx 2500) that I want to delete although I get the following:-
Server> rm *.*
Arguments too long
Is there a proper way of deleting this rather than breaking it down further through the list of files
rm *10.*
rm *11.*
rm *12.*
... (10 Replies)
Hi All,
I want to delete the contents of few files which are really huge in size.
How the same can be done by using sed. Is there any other alternative to sed.
Thanks in advance (10 Replies)
Hi Guys,
I want to know wheather it is possible to delete directory not files,
Example:
In one directory there are 10 dirs and 100 files but my req is to delete only dirs not file
Wheather it is possible ? (13 Replies)
I am working on a unix server.
I killed all the processes with my id on the machine.
After that I tried to delete a file, I got an error:-
file not removed.Text File busy.
Deletion of directory prompted:-
Directory not empty.
Can anyone help me regarding this...???
Thanks,
Vikas (11 Replies)
I have some empty files that were created from a script I ran that I cannot delete using the rm command.... any ideas as how I can delete them?
-rw-r--r-- 1 schroeks x_exp 0 Jul 21 08:24 rrd15CEC
-rw-r--r-- 1 schroeks x_exp 0 Jul 21 11:37 rrd15CEC
-rw-r--r-- ... (20 Replies)
I looked into the sticky bit, but I think, if possible, that I would prefer to have the file recreate itself after deletion. The file is several directories deep, and from time to time the top level directory will be trashed. I need the file to recreate after this. Is it possible to perhaps... (13 Replies)
Hi experts,
I have a problem with the below shell task:
I need to modify the file creatin a paired row , per each row
which matches filter (e.g. number of nonempty columns = 5)
Output should look like this:
second row is original one from the input,
first row(red) is pairing row, it's... (29 Replies)
Hello All
I am implementing my task in Perl and i found an issue.
What i want to do is to remove files from the directory which were made 20 days back using Perl script (9 Replies)
Guys, I am wondering how to remove files for a specific date in a directory?
for instance when I do ls -l , i see many files. And i want to delete files for date May 15:
58252015 May 10 03:45 my_05102012.log
58252015 May 15 06:45 my_05152012.log
Thanks (8 Replies)
I have a single record large file, semicolon ';' and pipe '|' separated. I am doing a vi on the file. It is throwing an error "File to long"
I need to actually remove the last | symbol from this file.
sed -e 's/\|*$//' filename
is working fine for small files. But not working on this big... (13 Replies)
Hi!
I have a directory full of .plist type files from which I need to delete a line. Not every file contains the line, but of course I'd like to do it recursively. The line which I want to delete is:
<string>com.apple.PhotoBooth</string>
and looks like this in its native habitat:
... (9 Replies)
Hello Friends,
I am stuck with the below problem.Any help will be appreciated.
I have a file which has say 100 lines.
On the second last line I have a line from which i want to remove certain characters..
e.g
CAST(CAST( A as varchar(50)) || ',' ||
CAST(CAST( B as varchar(50)) || ',' ||... (8 Replies)
Hello
I have a problem with use bash script in windows task.
If I use script by cygwin it's working well.
If I use it by Windows task I'm get error
Error :
ERROR 2 (HY000) at line 2: File '.\xxx.csv' not found (Errcode: 2)
Code Line :
load data local infile './xxx.csv' REPLACE into... (16 Replies)
i need to remove a file the problem is it will not let me remove a file because it thought that i was instructing it to remove a directory. the issue was that the file and directory has the same name.
drwxrwxr-x 2 ora102 lpsgrp 256 Apr 03 2009 sql
drwxrwxr-x 2 ora102 ... (12 Replies)