You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TBD:What have you expected tmp to do?
Create a file
Experienced Behavior
TBD:What did actually happen?
ENOENT: no such file or directory, open 'PARTIALS-INJECTOR\1layout.ejs'
at Object.openSync (fs.js:440:3)
Example:
let i = 1;
var fileOptions = {
name: `${i}layout.ejs`,
dir: "PARTIALS-INJECTOR"
};
// var dirObj = tmp.dirSync(dirOptions);
var fileObj = tmp.fileSync(fileOptions);
The folder exists in the Temp folder.
The text was updated successfully, but these errors were encountered:
The dir option overrides the standard tmp directory and is considered relative to the current working directory or an absolute directory, if you pass in an absolute path starting with /.
If you need it to reside under the standard tmp directory, pass in
var fileOptions = {
...
dir: `${tmp.tmpdir}/PARTIALS-INJECTOR`
};
Operating System
NodeJS Version
Tmp Version
TBD:0.1.0
Expected Behavior
TBD:What have you expected tmp to do?
Create a file
Experienced Behavior
TBD:What did actually happen?
Example:
The folder exists in the
Temp
folder.The text was updated successfully, but these errors were encountered: