Skip to content

fs,win: fix bug in paths with trailing slashes

This PR fixes the inconsistency across platforms by throwing the same exception on Windows as on Linux.

I've taken the logic and the code in the referenced PR and modified it slightly to allow it to run with the current implementation of Node. Thanks @lundibundi.

Fixes: https://github.com/nodejs/node/issues/17801 Refs: https://github.com/nodejs/node/pull/33831

Merge request reports

Loading