Directories: stopping on zero entries when contiguous mode