Skip to content

Commit 22040ad

Browse files
committed
Cleaned up 05filteredLS
1 parent 2ad2848 commit 22040ad

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

05filteredLS.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,6 @@ var path = require('path');
55
var myPath = process.argv[2];
66
var ext = process.argv[3];
77

8-
// fs.readdir(myPath, function(err, list){
9-
// for (var i = 0; i < list.length; i++) {
10-
// if(list[i].search(/\./)>-1){
11-
// var currExt = list[i].slice(list[i].search(/\./)+1);
12-
// if (ext === currExt) {
13-
// console.log(list[i]);
14-
// };
15-
// }
16-
// };
17-
// })
18-
19-
// OR
20-
218
fs.readdir(myPath, function(err, list){
229
for (var i = 0; i < list.length; i++) {
2310
if(path.extname(list[i])==='.'+ext){

0 commit comments

Comments
 (0)