Am downloading a zip file from web. It contain folders and files. Uncompressing them using ZipInputstream and ZipEntry. Zipentry.getName
ZipInputstream
ZipEntry
Zipentry.getName
This is how I do it
static void ensureFoldersExist(File folder) { if (!folder.exists()) { if (!folder.mkdirs()) { ensureFoldersExist(folder.getParentFile()); } } }