1
00:00:00,460 --> 00:00:05,730
This video, we will write a script to which creates many empty files.

2
00:00:06,150 --> 00:00:09,790
And we're going to create those files inside files.

3
00:00:09,810 --> 00:00:12,060
Director here and we need.

4
00:00:14,860 --> 00:00:19,690
The path objects the root directory will be.

5
00:00:21,170 --> 00:00:21,740
Path.

6
00:00:23,140 --> 00:00:29,170
Files for I in range 10 to one.

7
00:00:29,200 --> 00:00:30,700
What am I doing here?

8
00:00:31,270 --> 00:00:40,240
Well, in our case, in our example, I want to create a range of files with names ranging from 10 to

9
00:00:41,050 --> 00:00:44,740
11 to 12 that you see up to 20 dots.

10
00:00:45,310 --> 00:00:46,810
So 20 files.

11
00:00:47,650 --> 00:00:54,190
Now, of course, you might run into different scenarios of Ward's files you want to create, and maybe

12
00:00:54,190 --> 00:00:57,940
you want to put them in different directories and the code may change.

13
00:00:57,940 --> 00:01:05,710
But this is the idea how to create a bunch of empty files which you may need for different purposes

14
00:01:05,710 --> 00:01:06,340
later on.

15
00:01:06,790 --> 00:01:17,290
So you iterate through that you construct a file name as a string SDR, plus the T60 or see us v. whatever

16
00:01:17,290 --> 00:01:19,300
extension you are creating for the files.

17
00:01:21,520 --> 00:01:23,020
And then creates a false path.

18
00:01:24,570 --> 00:01:26,400
Which is the root directory.

19
00:01:27,530 --> 00:01:33,470
Slash the path object representing the file name.

20
00:01:34,580 --> 00:01:47,010
So that string so this will create a path object, which is something like files slash 10 to 60 of them.

21
00:01:48,050 --> 00:01:54,320
We touch that file path objects using the touch methods run and.

22
00:01:55,510 --> 00:02:02,770
The fires are here, so there's a code simple, straightforward, and maybe you'll make use of it in

23
00:02:02,770 --> 00:02:03,940
the future, so you.

