A directory variable is a variable of the built-in type dir, that can be associated with a directory/folder on an external storage device, in such a way that the names of the files in the directory/folder can be read.