Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
node-readdirp /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
bench.js
731
B
-rw-r--r--
2021-03-14 10:22
grep.js
1.46
KB
-rw-r--r--
2021-03-14 10:22
list.js
733
B
-rw-r--r--
2021-03-14 10:22
types.ts
578
B
-rw-r--r--
2021-03-14 10:22
Save
Rename
import readdirp from 'readdirp'; const read = async (directory: string) => { const stream = readdirp(directory, { type: 'all' }); let i = 0; for await (const chunk of stream) { // Check memory usage with this line. It should be 10MB or so. // Comment it out if you simply want to list files. await new Promise(resolve => setTimeout(resolve, 500)); console.log(`${++i}: ${chunk.path}`); } console.log('Stream done', i); const entries = await readdirp.promise(directory); console.log('Promise done', entries.map(e => e.path)); }; read(__dirname);