Thread remove_tree CHILD_DIR löscht PARENT_DIR (8 answers)
Opened by Andreas at 2011-11-11 15:37

GwenDragon
 2011-11-11 15:55
#154120 #154120
User since
2005-01-17
14563 Artikel
Admin1
[Homepage]
user image
Ein Blick in die Doku von CPAN:File::Path:
Quote
remove_tree( $dir1, $dir2, ...., \%opts )

(...)

The following keys are recognised in the option hash:keep_root => $bool

When set to a true value, will cause all files and subdirectories to be removed, except the initially specified directories. This comes in handy when cleaning out an application's scratch directory.
remove_tree( '/tmp', {keep_root => 1} );
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread remove_tree CHILD_DIR löscht PARENT_DIR