Make parseDir return a code space