dropInEvents create extra folders from a device using FTP upload
parent
b4f8408824
commit
f2032c80d3
|
@ -251,7 +251,9 @@ module.exports = function(s,config,lang,app,io){
|
||||||
var firstDroppedPart = pathPieces[2]
|
var firstDroppedPart = pathPieces[2]
|
||||||
var monitorEventDropDir = s.dir.dropInEvents + ke + '/' + mid + '/'
|
var monitorEventDropDir = s.dir.dropInEvents + ke + '/' + mid + '/'
|
||||||
var deleteKey = monitorEventDropDir + firstDroppedPart
|
var deleteKey = monitorEventDropDir + firstDroppedPart
|
||||||
onFileOrFolderFound(monitorEventDropDir + firstDroppedPart,deleteKey,Object.assign({},s.group[ke].rawMonitorConfigurations[mid]))
|
fs.mkdir(pathPieces.join('/'), { recursive: true }, (err) => {
|
||||||
|
onFileOrFolderFound(monitorEventDropDir + firstDroppedPart,deleteKey,Object.assign({},s.group[ke].rawMonitorConfigurations[mid]))
|
||||||
|
})
|
||||||
})
|
})
|
||||||
resolve({root: s.dir.dropInEvents + user.ke})
|
resolve({root: s.dir.dropInEvents + user.ke})
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in New Issue