(path, stack)
| 14 | }; |
| 15 | |
| 16 | const traversePath = (path, stack) => { |
| 17 | if (canPush(path)) return stack.push(path); |
| 18 | |
| 19 | if (canPop(path, stack)) stack.pop(); |
| 20 | }; |
| 21 | |
| 22 | const canPush = (path) => |
| 23 | !(isCurrentDirectory(path) || isParentDirectory(path)); |
no test coverage detected