the picture. M

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Hello I am trying to perform the instruction shown in the picture. May someone please help me on getting this function to work?

 

 

Problem
Maurice manages the file servers with Jen, and he says that one of the servers keeps running out of disk space. He needs to keep an eye on the files that are saved to the servers to make
sure that no one is duplicating large files or saving any abnormal files.
The reason this is a problem today because one of the primary servers is out of disk space right now and he is having trouble finding something he can safely delete or move somewhere
else.
Please create a script that will:
Ask the user to type the path to a folder; this will be the folder that they want to be inspected.
Example: C:\Users
Recursively examine the files and folders inside that path and produce the following three reports:
• Top 5 Newest Files
o Show the 5 most recent files created.
• Top 15 Largest Files
Show the 15 largest files.
• Top 20 Recently Accessed Files
o Show the 20 most recently accessed files sorted by file type.
Save your findings as three professional looking files in the C:\Reports\2021\ directory (one file per report).
· Format the information as a table with headings, columns, and rows.
· Each file should start with a line that includes the report's name (see above) followed by one or more lines that include a two-sentence description of what the report is.
- Use the following file names:
· Top 5 Newest Files: top5recent.txt
• Top 15 Largest Files: top15largest.txt
- Top 20 Recently Accessed Files: top20accessed.txt
- Use of new lines, ascii characters, and other elements to improve the look of the report should be utilized.
For all three of your reports, you should include the following information in your output, in the following order:
· Full path to the file.
· File size in GB.
- Date and time the file or folder was last changed.
· Date and time the file or folder was last accessed.
Transcribed Image Text:Problem Maurice manages the file servers with Jen, and he says that one of the servers keeps running out of disk space. He needs to keep an eye on the files that are saved to the servers to make sure that no one is duplicating large files or saving any abnormal files. The reason this is a problem today because one of the primary servers is out of disk space right now and he is having trouble finding something he can safely delete or move somewhere else. Please create a script that will: Ask the user to type the path to a folder; this will be the folder that they want to be inspected. Example: C:\Users Recursively examine the files and folders inside that path and produce the following three reports: • Top 5 Newest Files o Show the 5 most recent files created. • Top 15 Largest Files Show the 15 largest files. • Top 20 Recently Accessed Files o Show the 20 most recently accessed files sorted by file type. Save your findings as three professional looking files in the C:\Reports\2021\ directory (one file per report). · Format the information as a table with headings, columns, and rows. · Each file should start with a line that includes the report's name (see above) followed by one or more lines that include a two-sentence description of what the report is. - Use the following file names: · Top 5 Newest Files: top5recent.txt • Top 15 Largest Files: top15largest.txt - Top 20 Recently Accessed Files: top20accessed.txt - Use of new lines, ascii characters, and other elements to improve the look of the report should be utilized. For all three of your reports, you should include the following information in your output, in the following order: · Full path to the file. · File size in GB. - Date and time the file or folder was last changed. · Date and time the file or folder was last accessed.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Intelligent Machines
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education