in reply to Re: rmtree deletes everything inside the folder but doesn't deletes the root folder him self
in thread rmtree deletes everything inside the folder but doesn't deletes the root folder him self
You need to select the "no_chdir" option so it doesn't change to the directory you're acting on:
find({ wanted => \&process, no_chdir => 1 }, '.');
|
---|
In Section
Seekers of Perl Wisdom