This is an automated email from the ASF dual-hosted git repository.
jsorel pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new dee18f48ab Keep shapefile temporary files aside the original files to
avoid writing in system temporary folder
dee18f48ab is described below
commit dee18f48ab23c5c458e3da89b483773582832050
Author: jsorel <[email protected]>
AuthorDate: Wed Sep 25 15:17:01 2024 +0200
Keep shapefile temporary files aside the original files to avoid writing in
system temporary folder
---
.../main/org/apache/sis/storage/shapefile/ShapefileStore.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/incubator/src/org.apache.sis.storage.shapefile/main/org/apache/sis/storage/shapefile/ShapefileStore.java
b/incubator/src/org.apache.sis.storage.shapefile/main/org/apache/sis/storage/shapefile/ShapefileStore.java
index a3e36941cd..bbcfed2c35 100644
---
a/incubator/src/org.apache.sis.storage.shapefile/main/org/apache/sis/storage/shapefile/ShapefileStore.java
+++
b/incubator/src/org.apache.sis.storage.shapefile/main/org/apache/sis/storage/shapefile/ShapefileStore.java
@@ -948,7 +948,7 @@ public final class ShapefileStore extends DataStore
implements WritableFeatureSe
* Create a set of temporary files for edition.
*/
private ShpFiles createTempFiles() throws IOException{
- final Path tmp = Files.createTempFile("tmp", ".shp");
+ final Path tmp = Files.createTempFile(this.shpFile.getParent(),
".write-session-" + baseName + "-", ".shp");
Files.delete(tmp);
return new ShpFiles(tmp);
}