Changed download path
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-08-18 09:48:02 +02:00
parent 2a7495bac9
commit 4ef540c8f3
2 changed files with 2 additions and 5 deletions

View File

@ -4,8 +4,7 @@ const path = require('path');
module.exports = Self => { module.exports = Self => {
Self.getPath = function() { Self.getPath = function() {
// return '/var/lib/salix/image'; return '/var/lib/salix/image';
return 'C:\\Users\\jsanc\\Desktop\\image';
}; };
Self.registerImage = async(collectionName, file, srcFilePath) => { Self.registerImage = async(collectionName, file, srcFilePath) => {

View File

@ -20,9 +20,7 @@ module.exports = Self => {
const models = Self.app.models; const models = Self.app.models;
try { try {
/* const tempPath = path.join('/tmp/salix-image'); */ const tempPath = path.join('/tmp/salix-image');
const rootPath = models.Image.getPath();
const tempPath = path.join(rootPath, 'temp');
// Create temporary path // Create temporary path
await fs.mkdir(tempPath, {recursive: true}); await fs.mkdir(tempPath, {recursive: true});