Utility to convert directories.