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