A directory or folder is a collection of files and sub-directories. The os module provides various functions that allow us to interact with the operating system. In this section, we will learn about some functions that can be used while working with directories.