Skip to content

fs.mkdir/mkdirSync recursive hang with invalid windows character #31177

@fraxken

Description

@fraxken

Hi,

The following issue: #28599 doesn't seem to be resolved. I just encountered the problem on a project i work on since few days where we generate reports (some reports name has the ':' symbol in the name which is not good... i guess my collaborators are not working on Windows 😅)

Version: Node.js 13.3.0
Platform: Windows 10 - 64 Bit

How to reproduce (work with mkdirSync and mkdir promises):

const { mkdirSync } = require("fs");

console.log("A");
mkdirSync("test:lol", { recursive: true });
console.log("B");

mkdirSync never return. This should throw an Error.

Best Regards,
Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.libuvIssues and PRs related to the libuv dependency or the uv binding.windowsIssues and PRs related to the Windows platform.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions