Version: 16.0.0-rc-20
Operating Environment: Linux (3.2.0-23-generic, amd64) / UTF-8 / en / US / Oracle Corporation 1.7.0_60-b19
I try cases 1 and 2 on Linux. In both cases, the file is deleted when ADS is closed.
Why is this differnce in behaviour?
According to Jenny's comment on issue #12492, Spreadsheet should get deleted for above case 2 also.
The 'delete file' action is NOT performed by ADS code, it is performed by Java VM upon 'normal' ADS termination. Whether a file can be actually deleted is also restricted by OS. You were running on Windows, and Windows does not allow an opened file be deleted. That is why the generated temporary file remains on disk in case 2. If you terminate ADS abnormally, the generated temporary files likely will remain on disk, too.
Why is this differnce in behaviour?
According to Jenny's comment on issue #12492, Spreadsheet should get deleted for above case 2 also.
The 'delete file' action is NOT performed by ADS code, it is performed by Java VM upon 'normal' ADS termination. Whether a file can be actually deleted is also restricted by OS. You were running on Windows, and Windows does not allow an opened file be deleted. That is why the generated temporary file remains on disk in case 2. If you terminate ADS abnormally, the generated temporary files likely will remain on disk, too.
Issue #13154 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
1 issue link |
relates to #12492
Issue #12492Ability to specify where "View as spreadsheet" places Excel files |
Version: 16.0.0-rc-20
Operating Environment: Linux (3.2.0-23-generic, amd64) / UTF-8 / en / US / Oracle Corporation 1.7.0_60-b19
I try cases 1 and 2 on Linux. In both cases, the file is deleted when ADS is closed.