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

change preprints folder name on external FTP

parent 4fa3d005
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