Files
pdfer/server/utils.js
Thomas Ruoff db2c45342f add server dir
2017-02-23 21:00:35 +01:00

20 lines
316 B
JavaScript

const path = require('path');
function getDirPath(id) {
return `/tmp/pdfer-${id}`;
}
function getDocPath(id) {
return path.join(getDirPath(id), 'doc.tex');
}
function getPdfPath(id) {
return path.join(getDirPath(id), 'doc.pdf');
}
module.exports = {
getDirPath,
getDocPath,
getPdfPath
};