Skip to content

dir option must always be relative to the standard tmp directory #207

Closed

Description

@silkentrance

The dir option must be relative to the existing tmp directory that is provided by the process environment.

tmp will expect that the so defined directory is in place, otherwise it will fail as it will not create the directory by itself.

The current solution may pose issues and potential risk, see #205

The tmp directory should always and only be configured in the process environment and not by the application itself.

This might have a potential impact on existing applications and the change must be communicated well.

Activity

  1. changed the title [-]dir option must be relative to the standard tmp directory[/-] [+]dir option must always be relative to the standard tmp directory[/+] on Jan 15, 2020
  2. self-assigned this
    on Jan 24, 2020
  3. silkentrance commented on Jan 24, 2020

    @silkentrance
    CollaboratorAuthor

    see also #219

  4. silkentrance commented on Feb 3, 2020

    @silkentrance
    CollaboratorAuthor

    having a dir option that is always relative to the os/environment provided temporary directory requires tmp to recursively create that directory, if it does not exist in order to relieve the user from doing so in every one of his applications.

    we could use https://github.com/substack/node-mkdirp for that.

  5. added a commit that references this issue on Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions