-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Temp files created at /tmp are not cleaned up #1062
Comments
Thanks for your feedback, are you sure you're using the version 2.4.1? Excelize only created temporary files when using the |
Thanks for the quick response. One point to note is that, rows([][]string) returned by GetRows are sometimes not fully iterated through. Please help us on how to avoid these temp files from flooding the system. |
Hi @sandeepatil1288, could you provide your input file attachment without confidential info? |
Hi @xuri, |
Thanks for your feedback, I haved tested each spreadsheet in your attachment, and it works well, could you show us a complete, standalone example program or reproducible demo? and please try to upgrade to the master branch code, and call Close for each opened spreadsheet. |
It seems still not have enough info of code and attachments to reproduce this issue, so I'll close this issue, if you have any questions, please let me know. |
I am using excelize to read a bunch of xls/xlsx files.
Following is the outline of the usage,
f, err := excelize.OpenFile("Book1.xlsx")
if err != nil {
return
}
rows, err := f.GetRows("Sheet1")
if err != nil {
fmt.Println(err)
return
}
for _, row := range rows {
for _, colCell := range row {
fmt.Print(colCell, "\t")
}
fmt.Println()
if
break;
}
Issue Observed:
During reading of the files some temporary files are created like, excelize-1448635484 at the following path, /tmp/ and never gets cleaned up.
This is leading to eating up the memory of system causing more problems.
Go Version: 1.16
Excelize Version: 2.4.1
Can someone please share us some insight on what is causing the temp file creations and what is preventing from the same being cleared.?
The text was updated successfully, but these errors were encountered: