On a computer, the directory is employed to store, organize, and maintain distinct documents and folders. For example, you may create a directory for images and another for all of your papers.