-
Notifications
You must be signed in to change notification settings - Fork 0
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
nesting files in subdir for getNewTempFile #30
Conversation
Does it even need to be an option? Or, at least, having it on by default doesn't seem like it could hurt, right? |
we could make it the default. guess it was a style choice as paths read funny like |
updated default behavior |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you think the longer paths are ugly when not needed, I can get behind that too I suppose. Either way, you're good to merge when you want.
it was visually a bit annoying but I think simplicity of usage is more important. otherwise the caller needs to know some specifics about temp files vs rather just "give me temp file". those paths are not meant to be human readable anyhow so its prolly fine |
That was exactly why it was my preference, good show :)
…On Fri, Nov 3, 2023 at 10:42 AM Miroslav Shubernetskiy < ***@***.***> wrote:
it was visually a bit annoying but I think simplicity of usage is more
important. otherwise the caller needs to know some specifics about temp
files vs rather just "give me temp file". those paths are not meant to be
human readable anyhow so its prolly fine
—
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABELGQPDOLBKSVPNJGEFKQTYCT7F5AVCNFSM6AAAAAA64NEIWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJSGU3TAMJQGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Some apps such as
docker
when installed viasnap
dont have permissions to access temporary files created directly in/tmp
but crucially can access them when nested inside another folder inside/tmp
.This changes
getNewTempFile()
function to create temporary file inside a nested directory inside the temp location whatever that might be as determined bygenTempPath
which will honor things likeTMPDIR
/etcThis resolves docker permission issues but still leaves tmp location to be default as determined by the OS/user
@indecisivedragon was able to test it on her Ubuntu linux instance which has docker installed with snap