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

File remains opened after reading #40

Open
aminzer opened this issue Dec 22, 2017 · 1 comment
Open

File remains opened after reading #40

aminzer opened this issue Dec 22, 2017 · 1 comment

Comments

@aminzer
Copy link

aminzer commented Dec 22, 2017

Following code raises Permission denied @ unlink_internal - resources/tmp.xls (Errno::EACCES):

require 'roo-xls'

file_path = 'resources/tmp.xls'
Roo::Excel.new(file_path)

File.delete(file_path)

Can you please describe a correct way to close file after reading in case my code isn't correct?

roo-xls v1.1.0

@hugebag
Copy link

hugebag commented Jun 28, 2018

Have the same issue with roo-xls v1.2.0. I believe this is an issue specific to the roo-xls gem because I don't have an issue deleting a .xlsx file opened with the roo gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants