Changed download path
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
2a7495bac9
commit
4ef540c8f3
|
@ -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) => {
|
||||||
|
|
|
@ -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});
|
||||||
|
|
Loading…
Reference in New Issue