Map<String, String> zip_properties = new HashMap<>();
zip_properties.put("create", "false");
URI zip_disk = URI.create(name);
/* Create ZIP file System */
try (FileSystem zipfs = FileSystems.newFileSystem(zip_disk, zip_properties))
{
Path pathInZipfile = zipfs.getPath(name);
// System.out.println("About to delete an entry from ZIP File" +
pathInZipfile.toUri() );
Files.delete(pathInZipfile);
//System.out.println("File successfully deleted");
} catch (IOException e) {
e.printStackTrace();
}
I have create zip folder for multiple images in internal storage.Now i want to delete Zip files from the location and recreate same name zip folder in android.
Perform above code for delete zip folder but its not working
Please help me if anyone have solution
Thanks in advance..