Skip to content

Commit 2cbc85b

Browse files
author
Guy Blank
committed
Merge remote-tracking branch 'upstream/master'
2 parents 8d06e9c + c95ef1c commit 2cbc85b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ static void closeStream(String streamId, Callback callback) {
490490
*/
491491
static void unlink(String path, Callback callback) {
492492
try {
493-
RNFetchBlobFS.deleteRecursive(new File(path));
493+
String normalizedPath = normalizePath(path);
494+
RNFetchBlobFS.deleteRecursive(new File(normalizedPath));
494495
callback.invoke(null, true);
495496
} catch(Exception err) {
496497
callback.invoke(err.getLocalizedMessage(), false);

0 commit comments

Comments
 (0)