Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

[Android] File Creation Error: parent path may not exist #167

Closed
@ksegla

Description

@ksegla

Hi
Thanks for the much needed module. I'm trying to make it work but I'm having
"create file error: failed to create file at path " + path + " for its parent path may not exists"
path being /data/data/my_app_package/files/test.txt

/storage/emulated/0/data/data does exist and I even manually created the directory my_app_package to which I added directories files and cache.

Code:
const NEW_FILE_PATH = dirs.DocumentDir + '/test.txt';
const fs = RNFetchBlob.fs
fs.createFile(NEW_FILE_PATH, 'foo', 'utf8')

I followed the instructions, added external_storage access permission. Anything I missed?

RN: 0.34.1
RNFB: 0.9.6
Android: 5.0.2 (Samsung S6)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions