|
|
|
|
490
|
*/
|
490
|
*/
|
491
|
static void unlink(String path, Callback callback) {
|
491
|
static void unlink(String path, Callback callback) {
|
492
|
try {
|
492
|
try {
|
493
|
- RNFetchBlobFS.deleteRecursive(new File(path));
|
|
|
|
|
493
|
+ String normalizedPath = normalizePath(path);
|
|
|
494
|
+ RNFetchBlobFS.deleteRecursive(new File(normalizedPath));
|
494
|
callback.invoke(null, true);
|
495
|
callback.invoke(null, true);
|
495
|
} catch(Exception err) {
|
496
|
} catch(Exception err) {
|
496
|
callback.invoke(err.getLocalizedMessage(), false);
|
497
|
callback.invoke(err.getLocalizedMessage(), false);
|