Skip to content
Snippets Groups Projects
Commit dc1d1c7d authored by Audrey Hamelers's avatar Audrey Hamelers
Browse files

Merge branch 'dev_k8s'

* dev_k8s:
  change preprints folder name on external FTP
parents 28635721 ea366afd
No related branches found
No related tags found
No related merge requests found
......@@ -371,13 +371,13 @@ function createManifest(tmpPath, manuscript) {
function compress(tmpPath, manuscript, preprint, datedFolder) {
return new Promise((resolve, reject) => {
const dest = `${ftpLocation}${
preprint ? '/_Preprints' : ''
preprint ? '/Preprints' : ''
}/${datedFolder}/${manuscript.id}${
manuscript.version > 0 ? `v${Math.round(manuscript.version)}` : ''
}.tar.gz`
const cmd =
`mkdir -p ${ftpLocation}${
preprint ? '/_Preprints' : ''
preprint ? '/Preprints' : ''
}/${datedFolder} ;` +
`sleep 3 ;` +
`touch ${dest} ;` +
......
......@@ -206,7 +206,7 @@ module.exports.uploadTaggersPackage = function uploadTaggersPackage(
const datedFolder = filePath.match(/\d{4}-\d{2}-\d{2}/)
const folderPath = preprint
? `New/Preprints/${datedFolder}`
? `New/_Preprints/${datedFolder}`
: `New/${datedFolder}`
// create dated folder if not present
......
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