Tools for associating directories with codes