0.1.4 • Published 6 years ago
list-dir-file v0.1.4
列出文件夹下所有文件
rxjs
import { listDir, listDirFile } from 'list-dir-file';
// 列出文件夹
listDir(__dirname).subscribe(path=>{
console.log(path)
});
// 列出文件名
listDirFile(__dirname).subscribe(file=>{
console.log(file)
});