Skip to content

When using the template option tmp does not join paths with opts.dir or tmpDir if no path is given in the template #143

@silkentrance

Description

@silkentrance

Operating System

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

NodeJS Version

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

Tmp Version

All since the time the template option was introduced up to 0.31

Expected Behavior

When passing in the template option, tmp should join paths with either the dir option or the default tmpDir if the template does not already contain a path.

Experienced Behavior

Temporary files and directories will be created in the CWD. In addition, both absolute and relative paths passed as part of the template will not be rejected.

See also

#141

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions