diff --git a/Dockerfile b/Dockerfile index a63a615..e9f979f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM oven/bun:1.0.18-debian as base +FROM oven/bun:latest as base WORKDIR /app/prasi RUN apt-get update diff --git a/pkgs/api/_file.ts b/pkgs/api/_file.ts index 0059731..d5d5618 100644 --- a/pkgs/api/_file.ts +++ b/pkgs/api/_file.ts @@ -78,11 +78,10 @@ export const _ = { if (await existsAsync(dir(`${g.datadir}/files/${rpath}`))) { await renameAsync(dir(`${g.datadir}/files/${rpath}`), rename); } else { - console.log(dir(`${g.datadir}/files/${rpath}`)) - // const target = dir( - // `${g.datadir}/files/${dirname(rpath)}/${rename}` - // ); - // await dirAsync(target); + const target = dir( + `${g.datadir}/files/${dirname(rpath)}/${rename}` + ); + await dirAsync(target); } newname = `/${dirname(rpath)}/${rename}`; }