path sent to unlink is now checked for file prefix.
@@ -490,7 +490,8 @@ class RNFetchBlobFS {
*/
static void unlink(String path, Callback callback) {
try {
- RNFetchBlobFS.deleteRecursive(new File(path));
+ String normalizedPath = normalizePath(path);
+ RNFetchBlobFS.deleteRecursive(new File(normalizedPath));
callback.invoke(null, true);
} catch(Exception err) {
callback.invoke(err.getLocalizedMessage(), false);