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 @@ -2239,7 +2239,7 @@ const anyBigFile = await Readable.from([
2239
2239
' file3' ,
2240
2240
]).some (async (fileName ) => {
2241
2241
const stats = await stat (fileName);
2242
- return stat .size > 1024 * 1024 ;
2242
+ return stats .size > 1024 * 1024 ;
2243
2243
}, { concurrency: 2 });
2244
2244
console .log (anyBigFile); // `true` if any file in the list is bigger than 1MB
2245
2245
console .log (' done' ); // Stream has finished
@@ -2291,7 +2291,7 @@ const foundBigFile = await Readable.from([
2291
2291
' file3' ,
2292
2292
]).find (async (fileName ) => {
2293
2293
const stats = await stat (fileName);
2294
- return stat .size > 1024 * 1024 ;
2294
+ return stats .size > 1024 * 1024 ;
2295
2295
}, { concurrency: 2 });
2296
2296
console .log (foundBigFile); // File name of large file, if any file in the list is bigger than 1MB
2297
2297
console .log (' done' ); // Stream has finished
@@ -2341,7 +2341,7 @@ const allBigFiles = await Readable.from([
2341
2341
' file3' ,
2342
2342
]).every (async (fileName ) => {
2343
2343
const stats = await stat (fileName);
2344
- return stat .size > 1024 * 1024 ;
2344
+ return stats .size > 1024 * 1024 ;
2345
2345
}, { concurrency: 2 });
2346
2346
// `true` if all files in the list are bigger than 1MiB
2347
2347
console .log (allBigFiles);
You can’t perform that action at this time.
0 commit comments