sagiegurari / shell2batch

Coverts simple basic shell scripts to windows batch scripts.
Apache License 2.0
57 stars 7 forks source link

`rm -r` should be converted into `rmdir` #1

Closed AdamRzepka closed 6 years ago

AdamRzepka commented 6 years ago

Problem Description

rm is converted into del which works for files. However, del /Q directory removes files inside the directory, leaving subdirectories and the directory itself in place. In order to remove directory recursively, one needs rmdir /S.

So, the conversion should look like this:

rm -> del /Q
rm -r -> rmdir /S /Q
sagiegurari commented 6 years ago

Thanks. will be handled this week.

sagiegurari commented 6 years ago

This should be fixed now. If you need it in cargo-make it will take a bit longer until I release a new version of it since I plan to push there few more items.

sagiegurari commented 6 years ago

now that cargo-make 0.14.0 is released, i think this case can also be closed.