Question: Project Description Project Description Create a C + + 1 7 1 console ? 2 application that shows disk usage ( based on the UNIX
Project Description Project Description
Create a console application that shows disk usage based on the UNIX command du abbreviated from disk usage is inspired by a standard Unix program used to estimate file space usage on a file system. Your application will parse files from a given directory on a hard drive.
Purpose:
To display allocation space not absolute file space for each file and directory contained in a given pathname
Usage:
du takes at least a single argument, specifying a pathname
If no pathname is provided, the current directory is used du reports:
Pathnames and the sum of the clusters allocated for each directory
The sum of clusters for the given root directory
Switches:
Switches provide input options for additional functionality
is used before a single letter switch or a collection of single letter switches
is used before a word switch
Program Interfaces
du skhznrbhepversionbocksizeddddfolder
Where:
tablesDisplay only the final summary of each root folderkSet the cluster size to htableMake human readable. Output is in KiB,MiB,GiB,TiB rounded to either one decimal place ifless than or zero decimal places otherwise. A zero value has neither a decimal place or aunitsee demozSort rows by sizenSort rows by folder namerDisplay rows in reverse orderbOutput in bytes, not clustershelp,Display the help listingversion,Display the version number only in the form dddblocksizeddddSet the cluster size to the specified value foldertableIf no folder is provided the current working directory is used. Otherwise, the specified folder iswhere the scan begins.
Input Rules:
Cannot use b and h switches together
k and blocksize are incompatible
and switches are incompatible
No switch may be duplicated
There cannot be unknown switches
Grading Criteria Submission Requirements
Submit entire Visual Studio project directory to Fanshawe Online
a Delete all debug and release directories.
b Submit in a ZIP, z archive file.
Create a console application that shows disk usage based on the UNIX command du abbreviated from disk usage is inspired by a standard Unix program used to estimate file space usage on a file system. Your application will parse files from a given directory on a hard drive.
Purpose:
To display allocation space not absolute file space for each file and directory contained in a given pathname
Usage:
du takes at least a single argument, specifying a pathname
If no pathname is provided, the current directory is used du reports:
Pathnames and the sum of the clusters allocated for each directory
The sum of clusters for the given root directory
Switches:
Switches provide input options for additional functionality
is used before a single letter switch or a collection of single letter switches
is used before a word switch
Program Interfaces
du skhznrbhepversionbocksizeddddfolder
Where:
tablesDisplay only the final summary of each root folderkSet the cluster size to htableMake human readable. Output is in KiB,MiB,GiB,TiB rounded to either one decimal place ifless than or zero decimal places otherwise. A zero value has neither a decimal place or aunitsee demozSort rows by sizenSort rows by folder namerDisplay rows in reverse orderbOutput in bytes, not clustershelp,Display the help listingversion,Display the version number only in the form dddblocksizeddddSet the cluster size to the specified value foldertableIf no folder is provided the current working directory is used. Otherwise, the specified folder iswhere the scan begins.
Input Rules:
Cannot use b and h switches together
k and blocksize are incompatible
and switches are incompatible
No switch may be duplicated
There cannot be unknown switches
Grading Criteria
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
