Skip to content

Commit 5c3e251

Browse files
authored
fix: createFile
1 parent c2dcfb0 commit 5c3e251

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilFS.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ static void hash(String path, String algorithm, Promise promise) {
839839
*/
840840
static void createFile(String path, String data, String encoding, Promise promise) {
841841
try {
842+
path = ReactNativeBlobUtilUtils.normalizePath(path);
842843
File dest = new File(path);
843844
boolean created = dest.createNewFile();
844845
if (encoding.equals(ReactNativeBlobUtilConst.DATA_ENCODE_URI)) {

0 commit comments

Comments
 (0)