- Notifications
You must be signed in to change notification settings - Fork95
Closed
Labels
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
Seehttps://github.com/raszi/node-tmp/blob/master/lib/tmp.js#L564-L575
For example on Windows the tmpdir is in general inC:\Users\username\AppData\Local\Temp
. A username may contain a quote and / or a double quote (Bob's Computer
for example).
_getTmpName
calls_sanitizeName
onos.tmpdir()
and returns a folder that does not exist.