So it requires two inputs.
So what we can do is we can define these inputs.
So the first one is simply as you plate up.
So you see right.
Okay.
And it would be a 5 0.
Right.
The second thing is base but which would be of type String.
And the last thing would be base to it.
And this ought to also we have type string.
And then this function proceeds for that.
Okay.
So the first thing we need to do is we need to to find out which files are in the base part so to do
this we can use.
I know you can read directory.
So what this function or lose it will depend on the elements in this base part.
So I'm going to give you this part here and then it's going to return to objects.
So we distort this infighting variable
and then when we check if there is multiple to mean simply printing that.
Okay.
Once you have this list of names we can.
I don't want this.
So I can say for you just ignore the index and find it place to range and then find what we want to
do is you want to work in the region find objects in this directory so let's proceed for the next first
printed from the brain and then I'm going to print the name first.
So first thing would be spot and then I'm going to open the file and name.
So it would be for me.
So in this instance which finally we are working with at the moment once we have this our next step
would be to check if the file is not a directory which means that if are fine.
Then what do we do so we can see if
Mark find out is that a tree.
So this looks.
This implies that it's like a directory and it's a file so that the next time we do read this file to
read this we can simply use you in the read find and then we need to provide the Finally.
Which would be best but let's find a name.
So I'm going to use this for less file not name.
So now we are reading the data from this file.
So I'm going to store this incredible data and then I'm going to check if there is.
I love doing readings if it is not even to name a few people.
And then once you know that there is no other then point has been properly we can proceed further.
Okay.
So our next step would be now to create another zip file which would be embedded in the original file.
So to do this we you can use zip like that dot the ID and then we need to provide the file name which
would be based in zip less than the so this would can use the for zip.
Then that nullifies and then it's going to be done a final object which is called F and has a then we
can see if
there's more people than the groups
dreamed of being in the okay.
The next step would be to use this for an object which is f to light the letter to this file.
So f note right.
And then we need to provide the
that to
get the issue.
The assignment must right so it will depend on a lot of what it says about the time when people or the
number of votes
okay.
So if it's fired we can work like this.
If it's said directly we can go into the edit statement.
So let's put the condition here and if I can.
Is that true.
The next step would be to create a new base because we want to do this process because 70.
So for example if therefore low therefore you're working with campaigns internal for us we can do this
process again and again until we go through each and every file.
So to do this we can create a new base for you.
And then this new base would come down.
Not only is that base but plus a the
and then we can use this new base as as a source for this function again so we can do.
We got him here
and now we need to add the extension to is a print.
L1 and then we can then reach some directory we are working with so I can see things better for you.
Then we can provide the name Richard B.
Why isn't the name
to be made into that
new base.
Okay.
And then we can call the same general game here which would be right.
As you pointed.
And then we can provide the new base and the last thing would be base in C plus or in the name
this exertion.
So now you're things like that.
So now we will go to the Conservancy and create the zip file for each case.
So let's put it here.
We are calling zoo predators here.
Okay so somehow everything is perfect in the next lecture.
We really can just for them to see if we create different successfully and not.