Question: python3.6 need copy code and use the header: def findAll(folder,string): pass 1 Implement a recursive function findAllO that takes as parameters the name of a
1 Implement a recursive function findAllO 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 >>>findAll ('Test','winter' ['Testlfile3.txt', 'Testl\TestlllTestl-BVTestl-B-B\\file3.txt', 'Test\lTestll Testl-cIIC3\ file3.txt', 'Testl Test3 LAfile3.txt' >>>findAll ('Test', 'Zoko' ('Test \ \ Test1 \ \ Test1-A \ \file1 . t?,, , Test \ \ Test3\ \A\ \B\ \file1. txt', , Test \ \ Test3 file1.txt' >>> findAll ('Test','assignment') ['Testlfile2.txt', 'Testl\TestlllTestl-Afilel.txt', 'TestllTest2lBV B1-111B2 ?2 \ \B\ \B\ \file2. txt ,, ,Test\ \ Test3 \ \A\ \B\ \file1. txt', 'Test \ \Test3 \ \A \ \? \file2. txt', 'Testl Test3\filel.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
