kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Fixes
rodzic
eb377c7fcc
commit
b84a14101a
|
@ -121,7 +121,9 @@ module.exports = {
|
||||||
// Cleanup on done
|
// Cleanup on done
|
||||||
let handleResult = (err, result) => {
|
let handleResult = (err, result) => {
|
||||||
fs.exists(env.ODM_OPTIONS_TMP_FILE, exists => {
|
fs.exists(env.ODM_OPTIONS_TMP_FILE, exists => {
|
||||||
if (exists) fs.unlink(env.ODM_OPTIONS_TMP_FILE);
|
if (exists) fs.unlink(env.ODM_OPTIONS_TMP_FILE, err => {
|
||||||
|
if (err) console.warning(`Cannot cleanup ${env.ODM_OPTIONS_TMP_FILE}`);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Don't wait
|
// Don't wait
|
||||||
|
|
|
@ -53,6 +53,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
tmpPath: function(extension = ".txt"){
|
tmpPath: function(extension = ".txt"){
|
||||||
return path.join(os.tmpdir(), `nodeodm_${crypto.Crypto.randomBytes(6).readUIntLE(0,6).toString(36)}.${extension}`);
|
return path.join(os.tmpdir(), `nodeodm_${crypto.randomBytes(6).readUIntLE(0,6).toString(36)}${extension}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
Ładowanie…
Reference in New Issue