The fsPromises.mkdtemp() method will append the six randomly selected characters directly to the prefix string. For instance, given a directory /tmp, if the intention is to create a temporary directory within /tmp, the prefix must end with a trailing platform-specific path separator (require('node:path').sep).
This PR updates the arguments to mkdtemp() to take in the OS-specific path separator to fix the issues on my linux system. The directories are now created as shown below:
The documentation states that:
This PR updates the arguments to
mkdtemp()
to take in the OS-specific path separator to fix the issues on my linux system. The directories are now created as shown below: