Skip to content
Snippets Groups Projects
Commit d88cca97 authored by Nikos Marinos's avatar Nikos Marinos
Browse files

Addresses #358

parent 20f7614e
No related branches found
No related tags found
2 merge requests!90Dev,!88Shared data model
......@@ -5,13 +5,20 @@ const getUser = require('../utils/user.js')
const tar = require('../utils/unTar.js')
const files = require('../utils/files.js')
const db = require('../utils/db.js')
const { execSync } = require('child_process')
const ftpTagger = config.get('ftp_tagger')
const rootPath = `${process.env.HOME}/${config.get('ftp_directory')}/${
const parentRootPath = `${process.env.HOME}/${config.get('ftp_directory')}/${
ftpTagger.username
}/Done`
}`
const rootPath = `${parentRootPath}/Done`
const ignoreNewFolder = `${parentRootPath}/New`
const ignoreNewFolder = `${rootPath}/New`
const cmd = `mkdir -p ${rootPath} ${ignoreNewFolder}`
execSync(cmd)
// chokidar monitors tagged folder
const watcher = chokidar.watch(`${rootPath}**/*.tar.gz`, {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment