Skip to content

Unable to re write file if the same file was deleted manually from Phone file system: Android  #875

Open
@Rishabh02

Description

@Rishabh02

Hello,
I am unable to re write file on Android Samsung devices if the same named file was deleted from phone's file system manually.
Getting below error

{ "nativeStackAndroid": [], "userInfo": null, "message": "File '/storage/emulated/0/Download/myApp/0690Q000004lHWRQA2.jpeg' does not exist and could not be created", "code": "ENOENT" }

My Steps to reproduce

  1. write file using RNFetchBlob.fs.writeFile(filePath, updatedData.content, 'base64')
  2. Go to file destination in Android Phone
  3. Delete the same file
  4. Try to write file again

Below is my code for Writing file

RNFetchBlob.fs.writeFile(filePath, updatedData.content, 'base64') .then(this._onSuccess) .catch(err => { console.log('%c%s', 'color: red', '[ERROR] writeFile 8888', err); this._onError(err); });

I am facing this issue on Android samsung device
Samsung A14
Android OS: 14

Any Help will be appreciated

Thanks,
Rishabh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions