itinance / itinance/react-native-fs

Problem with create a new directory (RNFS.mkdir), in API Level 23.

Open
#677 23 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

react-native-fs can't create a new directory Android API level 23 and higher. but 22 is working fine.
got error:
err: { [Error: Directory could not be created] framesToPop: 1, code: 'EUNSPECIFIED' }
here my code 👍
```
const currentDirectory = 'MyFile';
const absolutePath = `/storage/emulated/0/${currentDirectory}`

> RNFS.mkdir(absolutePath).then((result) => {
> console.log('result', result)
> }).catch((err) => {
> console.log('err', err)
> })

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.