Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

6. Identify characteristics of whiteness.

Answered: 1 week ago

Question

9. Explain the relationship between identity and communication.

Answered: 1 week ago