i) Search all subdirectories that have the name specified by the user. The search should be conducted recursively from the parent directory that the user also specifies.
ii) Whenever each subdirectory with the same name is found in the recursive search, the list of the files in the subdirectory is displayed to the console screen along with the file attributes shown in the following:
• All the attributes associated file that are displayed when you run “ls –l filename”
Your program should accept two parameters as shown in the following:
% dirSearchList subDirNameToBeFound parentDirectoryFromWhichSearchShouldBegin
Suppose that you want to search all subdirectories that has the name “fork” and the recursive search begins from /home/ADILSTU/kwsuh/. The following command should be used:
% dirSearchList fork /home/ADILSTU/kwsuh
The following shows the result of a sample run (Note that I had two subdirectories called “fork” and each of the subdirectories contains a few regular files.)
% dirSearchList fork /home/ADILSTU/kwsuh
The following shows the result of another sample run (Note that I don’t have any subdirectory called “dirdoesnotexist”.
% dirSearchList dirdoesnotexist /home/ADILSTU/kwsuh
SEARCH FAILED!!
Deliverables: source code (including makefile) and written document in plain text (at least 200 words). The document should also contain a sample test result of your program.
References:
[login to view URL]
[login to view URL]
[login to view URL]~rich/class/cs170/notes/FileSystem/
Hello. How are you .
I have read
I have strong knowledge in Data structures, Algorithms Design,
Computer Architecture, Operating System
And I'm expert in C/C++ etc.
I'm interested in this project.
Please send me a message so that we can discuss more.
Then I'll be happy.
I wait for your good reply.
Thanks.