[CMD] Fix the del /s command, reported by Pablo De Napoli. CORE-10460
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 3 Dec 2017 15:01:44 +0000 (16:01 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 3 Dec 2017 15:01:44 +0000 (16:01 +0100)
commitf79d268ea1d1cf474ab02370d2392f66d9a18ebc
treed295aacd4c20c2cc60f3a6e35f713e59021d4721
parent9a595583073a38c3a5a2f52411c14f25daa15254
[CMD] Fix the del /s command, reported by Pablo De Napoli. CORE-10460

The command should delete files in the specified directory and all of its
sub-directories, using any file pattern specified.

For example, the command:

    del /S .\my_directory

should delete all the files inside my_directory and its sub-directories,
and as such should also detect that "my_directory" is indeed a directory,
while doing:

    del /S .\my_file

should of course detect that "my_file" is indeed a file pattern, and thus,
delete all "my_file" files from the current directory and its sub-directories.

The command:

    del /S some_directory\file_pattern

should delete "file_pattern" files from some_directory and its sub-directories.
base/shell/cmd/del.c