http://qs321.pair.com?node_id=931603


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 }, '.');
  • Comment on Re^2: rmtree deletes everything inside the folder but doesn't deletes the root folder him self