51Degrees / common-cxx

A shared functionality library that is used by 51Degrees products
Other
0 stars 6 forks source link

Existing files in temp directory will not be cleaned up if a dataset is not disposed of properly. #1

Closed ben51degrees closed 3 years ago

ben51degrees commented 4 years ago

When starting up, scan the supplied temp directory for files that could be old temp data files. Delete all that are found (or all but one if the 'reuse temp files' option is enabled)

ben51degrees commented 3 years ago

The fiftyoneDegreesFileDeleteUnusedTempFiles method has been added. This is used by the device-detection-cxx code to delete existing temp files on startup. The exception to this is on OS X systems, where the logic to ensure the file is not in use has not been reliably implemented.