Empty directory: Difference between revisions

Content added Content deleted
Line 95: Line 95:


In other words, list the contents of the directory, count how many items are in it, and test if that count was zero.
In other words, list the contents of the directory, count how many items are in it, and test if that count was zero.

Note that 1!:1 could have been used here, instead of the <code>dir</code> cover.


Example, under windows, create some directories:
Example, under windows, create some directories: