We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390b6f5 commit 993a03aCopy full SHA for 993a03a
library/src/main/java/com/loopj/android/http/FileAsyncHttpResponseHandler.java
@@ -53,7 +53,9 @@ public FileAsyncHttpResponseHandler(File file) {
53
public FileAsyncHttpResponseHandler(File file, boolean append) {
54
super();
55
Utils.asserts(file != null, "File passed into FileAsyncHttpResponseHandler constructor must not be null");
56
- Utils.asserts(file.getParentFile().mkdirs(), "Cannot create parent directories for requested File location");
+ if (!file.getParentFile().isDirectory()) {
57
+ Utils.asserts(file.getParentFile().mkdirs(), "Cannot create parent directories for requested File location");
58
+ }
59
this.mFile = file;
60
this.append = append;
61
}
0 commit comments