🚀 Socket Launch Week 🚀 Day 1: Introducing .NET Support in Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lastos/files-helper

Package Overview
Dependencies
Maintainers
6
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lastos/files-helper

文件操作

1.2.3
latest
npm
Version published
Weekly downloads
4
-76.47%
Maintainers
6
Weekly downloads
 
Created
Source

常用的文件操作类

安装:

npm install files-helper

##APIs

function getFileList(filePath: string, opt: any): Promise;
function copyFile(src: string, dest: string, opt:any): Promise;
function cancelCopy(id: string): Promise;
function removeFile(filePath:string): Promise;
function renameFile(filePath:string, newName:string): Promise;
function searchFiles(dirPath:string , seo:string): Promise;

Example

copyFile(path.join(__dirname, 'src'), path.join(__dirname, 'temp')).then(res => {
    console.log(JSON.stringify(res));
});

FAQs

Package last updated on 12 Jul 2021

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