🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-native-file-dir

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-file-dir

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

1.0.0
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
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

react-native-file-dir

FAQs

Package last updated on 21 Nov 2018

Did you know?

Socket

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