Skip to content

fix:修复使用exists()检测文件是否存在是当文件不存在时没有返回值 #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

WN0904
Copy link

@WN0904 WN0904 commented Sep 29, 2024

Summary

请解释此次更改的 动机,以下是一些帮助您的要点:

Explain the motivation for making this change: here are some points to help you:

  • What issues does the pull request solve? Please tag them so that they will get automatically closed once the PR is merged
  • What is the feature? (if applicable)
  • How did you implement the solution?
  • What areas of the library does it impact?

Test Plan

 ReactNativeBlobUtil.fs.exists(text + dir).then(res => {
        setExistRes(JSON.stringify(res))
      if (res) {
        setState(true)
      }
    })

Checklist

  • 已经在真机设备或模拟器上测试通过
  • 已经与 Android 或 iOS 平台做过效果/功能对比
  • 已经添加了对应 API 的测试用例(如需要)
  • 已经更新了文档(如需要)
  • 更新了 JS/TS 代码 (如有)

@mingmingaini mingmingaini merged commit 8d946ec into react-native-oh-library:sig Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

使用exists()检测文件是否存在是当文件不存在时没有返回值
2 participants