* Process a file for search or replace operation. * @param {object} file
(file)
| 81 | * @param {object} file |
| 82 | */ |
| 83 | function processFile(file) { |
| 84 | if (skip(file)) { |
| 85 | finishOne(); |
| 86 | return; |
| 87 | } |
| 88 | |
| 89 | getFile(file.url, (res, err) => { |
| 90 | if (err) { |
| 91 | finishOne(); |
| 92 | return; |
| 93 | } |
| 94 | |
| 95 | process({ file, content: res, search, replace, options }); |
| 96 | finishOne(); |
| 97 | }); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /** |