* Processes directory or file. * * @returns {Promise}
(path)
| 219 | * @returns {Promise} |
| 220 | */ |
| 221 | processPath(path) { |
| 222 | let that = this; |
| 223 | path = path.replace(/\/$/, ''); |
| 224 | |
| 225 | return vfs.stat(path).then(function(stat) { |
| 226 | if (stat.isDirectory()) { |
| 227 | return that.processDirectory(path); |
| 228 | } else { |
| 229 | return that.processFile(path); |
| 230 | } |
| 231 | }); |
| 232 | } |
| 233 | |
| 234 | /** |
| 235 | * Processes a string. |
no test coverage detected