Skip to content

Windows Temp file not working electron #176

Closed
@do-web

Description

@do-web

Operating System

  • Linux
  • Windows 7
  • Windows 10
  • MacOS
  • other:

NodeJS Version

  • 0.x
  • 4.x
  • 6.x
  • 7.x
  • other: 8.6

Tmp Version

TBD:Enter tmp version here
newest

Expected Behavior

TBD:What have you expected tmp to do?
correct temp file.

Experienced Behavior

TBD:What did actually happen?

It generates this file:

let fileName = tmp.tmpNameSync();
undefined\temp\tmp-3476obo4mLnOL8Bp

Then i trying to write to this file:

fs.writeFileSync(fileName, new Buffer(result.data));
no such file or directory, open 'C:\Users\xxx\xx\app-1.0.2\undefined\temp\tmp-3476obo4mLnOL8Bp'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions