-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting a prefix for temp directory #20
Conversation
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
What's the use-case for this? What problem are you trying to solve? |
Allow developers to easily find the cache directories created by a particular application for faster debugging. |
Debugging of what? Can you describe how you would use this for debugging? Just a name prefix will not help much as there will probably be more than one directory. |
@sindresorhus Having a prefix would allow us to know which application created the directory. |
Yes, but what do you do with that information? |
In my use case, my script automatically downloads and extracts a ffmpeg binary to a temporary path so, with a directory prefix, I can easily find the directory that it downloaded it to in order to check that it actually worked. |
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
…to add-dir-prefix
@sindresorhus Ready for re-review! |
Travis is failing |
Signed-off-by: Richie Bendall richiebendall@gmail.com
cc @sindresorhus