Computer Science- Python Scripting Assignment
Instructions
Create a simple Python application (Save as w5_firstname_lastname.py) .
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 try-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, do not create the file in the script.
Submit your week 5 work in w5_firstname_lastname.txt (Please save the file as a text file and upload the text file here for final review.)
Requirements
Points
Comment block. Instructions on how to run the code with examples
20
Code documentation and comments.
10
Assignment code including creating command line parameter
70
TOTAL POINTS
100
3 years ago 30
- history Unit VII Assessment
- WK2 Environmental Conservation
- Assignment
- I need an essay about the Vietnam War, but it needs to be written as a soldier from that time writing a letter to his family about his experience in Vietnam. It needs to be 3 pages long with title page and reference page makes 5 pages.
- Principles of Management
- Network Configuration using Microsoft Visio
- Hitler used the phrase "Parity of Aryan Race " to justify the Holocaust and his persecution of various groups as...
- Ortiz Company’s sales budget projects unit sales of part 198Z of 11,100 units in January, 11,900…
- Basics of Dependency UNIT 1 IP
- Assignment