Fwd: [PHP] Recurs Directory Delete
| From: | Andrew Kreps | Date: | Fri, 14 Jul 2006 23:31:45 +0000 |
| Subject: | Fwd: [PHP] Recurs Directory Delete | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239496@lists.php.net to get a copy of this message | ||
[forwarding my response to the list, as the reply function didn't quite work]
Actually, that's not true. 'rm -rf' removes all files, directories
and subdirectories. Microsoft's del has no analogy to that (although
there was a deltree command in older versions of DOS). You still have
to manually (or programmatically) iterate through the directory
structure and run 'del *.*' and then 'rd directory' in every single
subdirectory to achieve the same result that the single command 'rm
-rf' gives you on UNIX-like systems.
On 7/14/06, Adam Zey <azey@nit.ca> wrote:
So? Windows has this thing called the "del" command that does the same thing as "rm". Regards, Adam.