(path)
| 74 | } |
| 75 | |
| 76 | function traverse(path) { |
| 77 | if (fs.isFile(path) && /\.html$/.test(path)) { |
| 78 | modifyPage(path); |
| 79 | } else if (fs.isDirectory(path) && !fs.isLink(path)) { |
| 80 | var files = fs.list(path); |
| 81 | for (var i = 0; i < files.length; ++i) { |
| 82 | if (files[i] != "." && files[i] != "..") { |
| 83 | traverse(path + "/" + files[i]); |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | traverse(system.args[1]); |
| 90 | phantom.exit(); |
no test coverage detected