Question: Implement a recursive function findAll() that takes as parameters the name of a folder and a string to search for in the files contained within
Implement a recursive function findAll() that takes as parameters the name of a folder and a string to search for in the files contained within it. The function should return a list containing the full pathname of all occurrences of the file with the string. Please note that your function must work as described on any directory structure, not just the one provided as an example. The following illustrates several searches using a sample set of folders and directories located in the zip file containing the assignment template.

Template we where told to use: https://drive.google.com/file/d/1jdTbesGMlLj47eFNQBuzwnhsDaMnuBQd/view?usp=sharing
Set of directories we where given ( compressed folder): https://drive.google.com/file/d/1Q_IZ3HrJF3zHRW7J3FPdLOkT7iTOA5i-/view?usp=sharing
>>>findAll ('Test,'winter ?Test file3.txt', 'Test\\Test11\Test1-B11Testi-B-B"file3.txt', 'Test"Test111 >>> findAll ('Test,'Zoko filel.txt'] >>> findAll ( 'Test' ,' assignment' ) txt','TestITest3 lfilel.xt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
