Skip to content

Modifying calls from create_temp_workspace to...

Marques Gabriel requested to merge temp_workspace into core

Modifying calls from create_temp_workspace to QgsProcessingUtils.generateTempFolder/FileName. Base folder created stay the same for each qis instance and should not be deleted. Deletion of the files and sub folders are now inside QgsProcessingAlgorithm.postProcessAlgorithm. It seems this method allow the deletion of the tmp files even when errors occurs during processing (for some errors at least). Files also seems to be handled by Qgis and loosing reference to them or changign scope does not mean deletion.

Merge request reports