Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Fix Android file saving bug #184

Merged
merged 1 commit into from
Nov 15, 2016
Merged

Fix Android file saving bug #184

merged 1 commit into from
Nov 15, 2016

Conversation

chrissloey
Copy link
Contributor

This fixes a bug where a file would not be saved after specifying the path when fetching a file (as described here) on Android if the directories above the file at the specified path do not exist.

The file save was failing silently as the exception was swallowed by this catch block. I haven't added anything here but I guess that would be good to change at some point.

To fix the bug, I just create all missing directories above the file at the specified path if they don't exist.

It sounds like this is what was causing the problem in #133 too.

@wkh237 wkh237 merged commit 4d95709 into wkh237:0.10.1 Nov 15, 2016
@wkh237
Copy link
Owner

wkh237 commented Nov 15, 2016

Thanks you !

zombierabbit pushed a commit to zombierabbit/react-native-fetch-blob that referenced this pull request Feb 12, 2019
Add typescript type defenitions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants