file path normalisation: edge case
file path normalisation: edge case: a task in smol-software-harbor (Harbor dataset). normalize() in lib/paths.js silently drops leading .. segments of relative paths ( ../x becomes x ), which makes the sync tool write outside the intended folder. As its comment says, leading .. of a relative path…
The task
`normalize()` in `lib/paths.js` silently drops leading `..` segments of relative paths (`../x` becomes `x`), which makes the sync tool write outside the intended folder. As its comment says, leading `..` of a relative path must be kept, while for absolute paths `..` stops at the root. Fix it and run `node --test…
Part of efederici/smol-software-harbor.