|
|
@ -266,7 +266,8 @@ describe('Backup', () => {
|
|
|
|
return _.omit(model, ['id']);
|
|
|
|
return _.omit(model, ['id']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const twoSlashes = /.*\/.*\/.*/;
|
|
|
|
const slash = path.sep === '/' ? '\\/' : '\\\\';
|
|
|
|
|
|
|
|
const twoSlashes = new RegExp(`.*${slash}.*${slash}.*`);
|
|
|
|
function removeDirs(dirs) {
|
|
|
|
function removeDirs(dirs) {
|
|
|
|
return _.filter(dirs, (fullDir) => {
|
|
|
|
return _.filter(dirs, (fullDir) => {
|
|
|
|
const dir = fullDir.replace(attachmentsPath, '');
|
|
|
|
const dir = fullDir.replace(attachmentsPath, '');
|
|
|
|