We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83b681a commit 5f9e753Copy full SHA for 5f9e753
lib/Type/IO.pod
@@ -347,6 +347,16 @@ L<umask|http://en.wikipedia.org/wiki/Umask>).
347
Throws an exception of type L<X::IO::Mkdir|/type/X::IO::Mkdir> if the
348
directory cannot be created.
349
350
+=head2 sub rmdir
351
+
352
+ sub rmdir($dir as IO --> Bool) is export
353
354
+Remove the given directory if it is empty.
355
356
+Returns C<True> on success. Throws an exception of type
357
+L<X::IO::Rmdir|/type/X::IO::Rmdir> if the directory cannot be removed (e.g.
358
+the directory is not empty, or the path is not a directory).
359
360
=head2 sub run
361
362
sub run(*@args ($, *@)) returns Proc::Status:D
0 commit comments