Skip to content
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

Tempfile directory when writing to buffer #214

Closed
oneiros opened this issue Jan 27, 2015 · 2 comments
Closed

Tempfile directory when writing to buffer #214

oneiros opened this issue Jan 27, 2015 · 2 comments

Comments

@oneiros
Copy link

oneiros commented Jan 27, 2015

I ran into a small problem recently: Apparently, when writing to a buffer, rubyzip creates Tempfiles in the working directory. In my case, no files can be written to that directory.

My current workaround is to use Dir.chdir to change the working directory before using rubyzip and then set if back to the old value afterwards. This works fine, but still I wonder if a configuration option within rubyzip to set a temporary directory (maybe defaulting to /tmp) would make sense.

Anyway, that is just a suggestion. Keep up the good work!

@graugans
Copy link

Maybe it is an good idea to use tempfile class in rubyzip for storing this kind of files

@hainesr
Copy link
Member

hainesr commented Jun 18, 2021

Fixed. I think.

@hainesr hainesr closed this as completed Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants