On 06/03/2018 01:28 PM, Patrick Spek via perl6-users wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Sun, 3 Jun 2018 13:13:31 -0700
ToddAndMargo <toddandma...@zoho.com> wrote:

Does Perl 6 have a built in recursive rmdir
equivalent to LINUX's `rmdir --parents path`?

For this, there's `rmtree` in the `File::Directory::Tree` module. It is
referenced in the docs: https://docs.perl6.org/routine/rmdir

I will put that in my notes


Also, does Perl6 have a built in recursive mkdir
equivalent to LINUX's `mkdir --parents path`?

Also in the docs here: https://docs.perl6.org/routine/mkdir. This
behaviour you're looking for is the default behaviour of `mkdir` in
Pelr 6. To quote from the docs:

Also creates parent directories, as needed (similar to *nix utility
mkdir with -p option); that is, mkdir "foo/bar/ber/meow" will create
foo, foo/bar, and foo/bar/ber directories if they do not exist, as
well as foo/bar/ber/meow.

Cool!  I did not see that

https://docs.perl6.org/routine/mkdir#role_IO
and it is right under my nose!

Thank you!

Reply via email to