Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Python script that takes two parameters to do the following:- 1) List all files names, size, date created in the given folder 2)

Create a Python script that takes two parameters to do the following:-

1) List all files names, size, date created in the given folder

2) Parameter1 = Root Folder name

Parameter2= File size >>> to filter file size ( you can do =, > or <) it is up to you, or a range.

The script should check and validate the folder name, and the size

The script should loop until find all files greater than the specified size in all the sub-folders

3) Use catch-exception block (Make sure that the error messages do not reveal any of the application code)

4) Optionally, you can save the list into a file Results.txt using the redirection operator or by creating the file in the script.

The folder name I want to pull the files from is C:\ENTD261

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_2

Step: 3

blur-text-image_3

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions