(fn, two)
| 30 | return exports; |
| 31 | |
| 32 | function wrap(fn, two) { |
| 33 | return function () { |
| 34 | arguments[0] = pathJoin(root, pathJoin("/", arguments[0])); |
| 35 | if (two) arguments[1] = pathJoin(root, pathJoin("/", arguments[1])); |
| 36 | return fn.apply(this, arguments); |
| 37 | }; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // Given a path, return a continuable for the stat object. |