Search For A File Using Python
If you are a coder, then surely you must have came across a requirement wherein you need to search for a file in a given directory. Now, this directory could be any directory — it could be your immediate parent directory or it could be a grand grand parent.
In this article, I’ll explain you about how can you search for a file in a given directory using Python.
To perform file search, we only need a package named os and this can be imported using below line of code: