mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
remove mistakenly added files
This commit is contained in:
parent
947c1f4991
commit
d47a11cfc2
26 changed files with 2 additions and 27 deletions
|
|
@ -2,7 +2,7 @@ import { join } from "path";
|
|||
import { exists, mkdir, writeFile, readFile } from "fs/promises";
|
||||
|
||||
export const writeToTempDirectory = async (filename: string, data: string) => {
|
||||
const tempDir = join(process.cwd(), "temp");
|
||||
const tempDir = join("/tmp/", "lysand");
|
||||
if (!(await exists(tempDir))) await mkdir(tempDir);
|
||||
|
||||
const tempFile = join(tempDir, filename);
|
||||
|
|
@ -12,7 +12,7 @@ export const writeToTempDirectory = async (filename: string, data: string) => {
|
|||
};
|
||||
|
||||
export const readFromTempDirectory = async (filename: string) => {
|
||||
const tempDir = join(process.cwd(), "temp");
|
||||
const tempDir = join("/tmp/", "lysand");
|
||||
if (!(await exists(tempDir))) await mkdir(tempDir);
|
||||
|
||||
const tempFile = join(tempDir, filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue