Closed
Description
Operating System
- Linux
- Windows 7
- Windows 10
- MacOS
- other:
NodeJS Version
- 0.x
- 4.x
- 6.x
- 7.x
- other:
Tmp Version
0.2.1
Expected Behavior
Don't remove quotes from paths
Experienced Behavior
Quotes are being removed
See https://github.com/raszi/node-tmp/blob/master/lib/tmp.js#L564-L575
For example on Windows the tmpdir is in general in C:\Users\username\AppData\Local\Temp
. A username may contain a quote and / or a double quote (Bob's Computer
for example).
_getTmpName
calls _sanitizeName
on os.tmpdir()
and returns a folder that does not exist.