analytics-kotlin icon indicating copy to clipboard operation
analytics-kotlin copied to clipboard

Fix Windows file deletion by closing stream before removeFile

Open apuig opened this issue 3 months ago • 1 comments

Follow-up to #284

Move storage.removeFile() call outside the use{} block to ensure InputStream is fully closed before attempting file deletion. On Windows, files cannot be deleted while file handles remain open, causing silent deletion failures and infinite upload retries of the same batch files.

apuig avatar Jan 15 '26 14:01 apuig