In a file system, a directory is a container for files. The term folder is often used for a directory. Functionally, folders and directories are the same.
In networking, a directory points to users, devices, and abstract containers of other network objects. A directory service is a client-server process allowing for network object lookup.