Each directory contains and .. entries, and the entry points to the directory
itself. If not, print ERROR: directory not p
void check_dir_format() {
// List code here
}