Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

use the temporary directory specified by the OS for temporary files #22

Merged
merged 1 commit into from
Jul 23, 2018
Merged

Conversation

httnn
Copy link
Contributor

@httnn httnn commented Jun 13, 2018

what

fs.mkdtemp only returns the name of the temporary folder, which means that it gets created in the current working directory. this change adds the path to the OS's temporary folder where everyone can (usually) write to.

why

in our build process we don't have permission to write to the folder where the build is run, so using this library fails. also in theory it feels a bit better to write temporary files to an actual temporary folder.

Copy link
Contributor

@bengourley bengourley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Sorry to have left this dangling for a while! This changeset also has the benefit of these files being cleaned up by the OS if any of them get left behind.

@bengourley bengourley merged commit 08ee643 into bugsnag:master Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants