Simple version of a directory scanner