Handle nested folder case

Change-Id: Id6d6a5899e8255d18192adbc766d8d9a0e6825d0
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
This commit is contained in:
Roger Chen
2012-12-17 13:31:17 +08:00
committed by Gerrit Code Review
parent d13b23a436
commit 1740ada533

View File

@@ -499,7 +499,7 @@ public class DownloadManager {
" already exists and is not a directory");
}
} else {
if (!file.mkdir()) {
if (!file.mkdirs()) {
throw new IllegalStateException("Unable to create directory: "+
file.getAbsolutePath());
}