1
00:00:00,450 --> 00:00:06,990
Here is my solution to the exercise, which searches for a file in directories and subdirectories.

2
00:00:07,410 --> 00:00:14,270
So I am creating a router activity which could be the project directory, or it could also be destination.

3
00:00:14,280 --> 00:00:16,560
It doesn't matter what, you'd still get the same results.

4
00:00:16,560 --> 00:00:23,760
So if you want to also search among these files, you could leave that otherwise puts destination there.

5
00:00:24,090 --> 00:00:25,770
And there's a search term now.

6
00:00:25,800 --> 00:00:30,050
You could also implement a function and make this code more usable.

7
00:00:30,060 --> 00:00:36,180
But for our purposes, this is enough just to demonstrate you how we can search for files.

8
00:00:36,480 --> 00:00:44,800
And then the loop is a simple way to read through our blog, so our globe will look at the directories

9
00:00:44,820 --> 00:00:51,690
and some directories for files, and then we look in the search term.

10
00:00:51,930 --> 00:00:58,010
So E14 is in the stem of the file, right?

11
00:00:58,170 --> 00:01:02,190
The same is 10, 11, 12 13.

12
00:01:03,410 --> 00:01:05,810
We print out the absolute path.

13
00:01:06,830 --> 00:01:13,190
No, this script, however, is also looking for folders with the same name.

14
00:01:13,520 --> 00:01:17,540
So if you see here, for example, item and execute.

15
00:01:19,000 --> 00:01:25,540
It will also give you folders that have that same name and notes on the files.

16
00:01:25,720 --> 00:01:29,920
So if you want to check only for files, you'd want to put the condition.

17
00:01:29,920 --> 00:01:40,600
If there is a file of an, then these under that's condition and then run again when you put the colon

18
00:01:40,600 --> 00:01:40,970
here.

19
00:01:41,020 --> 00:01:45,650
I forgot Arun, and then you get only the zip files.

20
00:01:45,700 --> 00:01:47,500
So files, not folders.

21
00:01:48,530 --> 00:01:50,960
And of course, our original term was 14.

22
00:01:51,940 --> 00:01:55,420
And we should get to files, that's one.

23
00:01:56,110 --> 00:01:56,650
And that's.

24
00:01:58,010 --> 00:02:00,110
So, yeah, that's a solution, thank you.

