You're telling rmtree to remove the directory tree starting at .../alpha/beta/gama and it's doing exactly what you've told it to do (removed everything under the subdirectory gamma). If you want it to start at .../alpha and remove everything under it then do so.
Addendum: And as for the slash question, it depends on whether you want the new directory tree created under the root directory / or under the current working directory.
In reply to Re: File::Path::rmtree: What am I not grokking?
by Fletch
in thread File::Path::rmtree: What am I not grokking?
by jkeenan1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |