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 Document directory is being included because you are adding it to listFiles on line 19. Instead you should be adding all the files and directories in Documents at this point.