In this article, you’ll learn about creating a directory, renaming it, list all files in a directory and find if a string is there is in file name. What is Directory? A directory or folder is a collection of files and sub-directories. Python has the os module, which provides a…