Question
I want to create a Python Script that will search through a directory for a specific file. For example, the script will ask which directory
I want to create a Python Script that will search through a directory for a specific file.
For example, the script will ask which directory and let the user choose, if the directory doesn't exist then it will return false.
After that, the user will enter a file name, ex. "name.txt", then the script will search through the whole directory to find if "name.txt" exists.
If there are two "name.txt", use their metadata to compare them and show the differences.
I don't need the whole script but any useful methods, functions that can help me finish this script is appreciated.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started