1Padre::Task::File(3) User Contributed Perl Documentation Padre::Task::File(3)
2
3
4
6 Padre::Task::File - File operations in the background
7
9 # Recursively delete
10 Padre::Task::File->new(
11 remove => 'C:\foo\bar\baz',
12 )->schedule;
13
15 The File::Remove CPAN module is a specialised package for deleting
16 files or recursively deleting directories.
17
18 As well as providing the basic support for recursive deletion, it adds
19 several other important features such as removing readonly limits on
20 the fly, taking ownership of files if permitted, and moving the current
21 working directory out of the deletion path so that directory cursors
22 won't block the deletion (a particular problem on Windows).
23
24 The task takes the name of a single file or directory to delete (for
25 now), and proceeds to attempt a recursive deletion of the file or
26 directory via the File::Remove "remove" method.
27
28 In the future, this module will also support more types of file
29 operations and support the execution of a list of operations.
30
32 new
33 my $task = Padre::Task::File->new(
34 remove => '/foo/bar/baz',
35 );
36
37 Creates a new deletion task.
38
39 Takes a single parameter "remove" which must be an absolute path to the
40 file to delete (as the "current directory" may change between the time
41 the removal task is created and when it is executed).
42
43 remove
44 The "remove" accessor returns the absolute path of the file or
45 directory the task will try to delete (or tried to delete in the case
46 of completed tasks).
47
49 Padre, Padre::Task, File::Remove
50
52 Copyright 2008-2011 The Padre development team as listed in Padre.pm.
53
54 This program is free software; you can redistribute it and/or modify it
55 under the same terms as Perl 5 itself.
56
57 The full text of the license can be found in the LICENSE file included
58 with this module.
59
60
61
62perl v5.32.1 2021-01-27 Padre::Task::File(3)