Empty directory: Difference between revisions

Content added Content deleted
m (Note some edge cases / format)
m (typo)
Line 2:
Starting with a path to some directory, determine whether the directory is empty.
 
An empty directory contains no files nor subdirectories. With [[Unix]] or [[Windows]] systems, every directory contains andan entry for “<code>.</code>” and almost every directory contains “<code>..</code>” (except for a root directory); an empty directory contains no other entries.
 
=={{header|Ruby}}==