Socket
Socket
Sign inDemoInstall

react-native-file-dir

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-file-dir

可复制文件目录到指定目录,读取文件目下所有文件及文件目录,可删除文件和文件目录


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
31.5 kB
Created
Weekly downloads
 

Readme

Source

react-native-file-dir

可复制文件目录到指定目录,读取文件目下所有文件及文件目录,可删除文件和文件目录

安装

npm i --save react-native-file-dir

安装依赖(必须安装)

npm i --save react-native-fs 文件操作组件

使用,以下方法的参数,请查看源文件,里面有方法参数的详细注释

import FileDirMgr from "react-native-file-dir";
FileDirMgr.copyDir();//复制目录到指定目录
FileDirMgr.readDir();//读取目录下的所有文件
FileDirMgr.deleteDirOrFile();//删除目录或文件

Keywords

FAQs

Last updated on 21 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc