am c02bbfb3: am 9fae2ecc: Merge "Handle nested folder case"

* commit 'c02bbfb3ea64ec9f4f3e6eff796b0bfe571bda9b':
  Handle nested folder case
This commit is contained in:
Dianne Hackborn
2013-01-07 15:58:43 -08:00
committed by Android Git Automerger

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());
}