posted 11 years ago
I want to make a zip file of all contents inside a directory including subfolders & files,
I have a directory called Documents, in my code Document directory gets included in zip file, but I want only the contents within the Document directory
i.e folder1,folder2,folder3, file.txt
it should exclude Document directory in zip file, but all the contents(folders & files) within it, should be present
Please Help.
The directory structure is:
Document/
>folder1 ( Document/folder1 )
>file1.txt ( Document/folder1/file1.txt )
folder2 ( Document/folder2 )
>file2.txt ( Document/folder2/file2.txt )
folder3 ( Document/folder3 )
>file3.txt ( Document/folder3/file3.txt )
file.txt ( Document/file.txt )
Code: