Add simple support for directories.