we have a program which unzips a file and store the unzippied files in a directory.
While unzipping, there may be a chance that the unzipped file come with the same name as we have unzipped as part of the other zipped file.
1.zip
test.log
test1.log
2.zip
test2.log
test1.log
I have a loop to look thru the *.zip file and then in the statement it unzips the file.
There it is failing, due to duplicate file.
I want to avoid replacing the file, I don't want to overwrite the file.
Can you please suggest some technique with which I can retain all the four files?