This commit is contained in:
Rizky 2024-02-26 11:52:13 +07:00
parent f9137f22ce
commit 287a096fd3
2 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,4 @@
FROM oven/bun:1.0.18-debian as base FROM oven/bun:latest as base
WORKDIR /app/prasi WORKDIR /app/prasi
RUN apt-get update RUN apt-get update

View File

@ -78,11 +78,10 @@ export const _ = {
if (await existsAsync(dir(`${g.datadir}/files/${rpath}`))) { if (await existsAsync(dir(`${g.datadir}/files/${rpath}`))) {
await renameAsync(dir(`${g.datadir}/files/${rpath}`), rename); await renameAsync(dir(`${g.datadir}/files/${rpath}`), rename);
} else { } else {
console.log(dir(`${g.datadir}/files/${rpath}`)) const target = dir(
// const target = dir( `${g.datadir}/files/${dirname(rpath)}/${rename}`
// `${g.datadir}/files/${dirname(rpath)}/${rename}` );
// ); await dirAsync(target);
// await dirAsync(target);
} }
newname = `/${dirname(rpath)}/${rename}`; newname = `/${dirname(rpath)}/${rename}`;
} }