3 ms·
Is there actually a reason to do both del and rmdir instead of just rmdir? Or is the post just being superstitious?
by winstonewert 9y ago
Is there actually a reason to do both del and rmdir instead of just rmdir? Or is the post just being superstitious?
- masklinn 9y agormdir will only remove visible non-system files, and will fail with the non-obvious "The directory not empty" when failing to delete one such file and subsequently not being able to delete the corresponding directory. An alternative would be to use dir + attrib to make all files visible (I don't know that stripping out the system flag by default is a good idea) before running rmdir.