@lastos/files-helper
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

常用的文件操作类

安装:

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));
});

Readme

Keywords

none

Package Sidebar

Install

npm i @lastos/files-helper

Weekly Downloads

5

Version

1.2.3

License

MIT

Unpacked Size

659 kB

Total Files

20

Last publish

Collaborators

  • yang8guang
  • dicklwm
  • chengyong
  • ouxuwen
  • michael4npm
  • yanmin