Can save and restore a directory.