File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2229,7 +2229,7 @@ const anyBigFile = await Readable.from([
2229
2229
' file3' ,
2230
2230
]).some (async (fileName ) => {
2231
2231
const stats = await stat (fileName);
2232
- return stat .size > 1024 * 1024 ;
2232
+ return stats .size > 1024 * 1024 ;
2233
2233
}, { concurrency: 2 });
2234
2234
console .log (anyBigFile); // `true` if any file in the list is bigger than 1MB
2235
2235
console .log (' done' ); // Stream has finished
@@ -2279,7 +2279,7 @@ const foundBigFile = await Readable.from([
2279
2279
' file3' ,
2280
2280
]).find (async (fileName ) => {
2281
2281
const stats = await stat (fileName);
2282
- return stat .size > 1024 * 1024 ;
2282
+ return stats .size > 1024 * 1024 ;
2283
2283
}, { concurrency: 2 });
2284
2284
console .log (foundBigFile); // File name of large file, if any file in the list is bigger than 1MB
2285
2285
console .log (' done' ); // Stream has finished
@@ -2327,7 +2327,7 @@ const allBigFiles = await Readable.from([
2327
2327
' file3' ,
2328
2328
]).every (async (fileName ) => {
2329
2329
const stats = await stat (fileName);
2330
- return stat .size > 1024 * 1024 ;
2330
+ return stats .size > 1024 * 1024 ;
2331
2331
}, { concurrency: 2 });
2332
2332
// `true` if all files in the list are bigger than 1MiB
2333
2333
console .log (allBigFiles);
You can’t perform that action at this time.
0 commit comments