Skip to content

Commit 85ffc37

Browse files
committed
1 parent 28d9346 commit 85ffc37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/main/java/com/loopj/android/http/FileAsyncHttpResponseHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public FileAsyncHttpResponseHandler(File file) {
5353
public FileAsyncHttpResponseHandler(File file, boolean append) {
5454
super();
5555
AssertUtils.asserts(file != null, "File passed into FileAsyncHttpResponseHandler constructor must not be null");
56+
AssertUtils.asserts(getTargetFile().getParentFile().mkdirs(), "Cannot create parent directories for requested File location");
5657
this.mFile = file;
5758
this.append = append;
5859
}

0 commit comments

Comments
 (0)