or download this
It returns the number of files successfully deleted. Symlinks are
treated as ordinary files.
...
using C<$SIG{__WARN__}>; it is not apparent from the return value.
Therefore, you must be extremely careful about using C<rmtree($foo,$ba
+r,0>
in situations where security is an issue.