using the Unix '/' separator) created.
If a system error prevents a directory from being created, then the
-C<mkpath> function throws a fatal error with Perl's C<croak> mechanism.
-This error can be trapped with an C<eval> block:
+C<mkpath> function throws a fatal error with C<Carp::croak>. This error
+can be trapped with an C<eval> block:
eval { mkpath($dir) };
if ($@) {
read and write access. Note also that the occurrence of errors in
rmtree can be determined I<only> by trapping diagnostic messages
using C<$SIG{__WARN__}>; it is not apparent from the return value.
-Therefore, you must be extremely careful about using C<rmtree($foo,$bar,0>
+Therefore, you must be extremely careful about using C<rmtree($foo,$bar,0)>
in situations where security is an issue.
+=head1 DIAGNOSTICS
+
+=over 4
+
+=item *
+
+On Windows, if C<mkpath> gives you the warning: B<No such file or
+directory>, this may mean that you've exceeded your filesystem's
+maximum path length.
+
+=back
+
=head1 AUTHORS
Tim Bunce <F<Tim.Bunce@ig.co.uk>> and