This commit is contained in:
tree 2023-04-19 00:54:51 +02:00
rodič af81c7fd0f
revize 5ec4aa6e6c
1 změnil soubory, kde provedl 6 přidání a 6 odebrání

Zobrazit soubor

@ -363,12 +363,12 @@ class DeConf_Collection {
async assetsWrite(outputDir, publicUrl) {
for (const asset of this.assets) {
const item = this.data.sync
? this.data.sync[asset]
: this.data.index[asset];
if (!item) continue;
const fnIn = item;
const fnOut = [this.id, item].join("/");
const x = { ...this.data.sync, ...this.data.index }
if (!x[asset]) continue;
const fnIn = x[asset];
console.log(fnIn, asset)
const fnOut = [this.id, x].join("/");
await emptyDir([outputDir, this.id].join("/"));
await emptyDir([outputDir, this.id, "photos"].join("/"));
await _fileCopy([this.dir, fnIn].join("/"), [outputDir, fnOut].join("/"));