Revert "testing: display path availability on screen"

This reverts commit 59585e26f1.
This commit is contained in:
2025-10-10 08:04:28 +02:00
parent 59585e26f1
commit b5ee0bd6a7
2 changed files with 2 additions and 6 deletions

View File

@@ -5,14 +5,11 @@ import { ROUTE_NAMES } from '..';
import fs from 'fs';
const path = '/daten';
let path_existing: string;
fs.access(path, fs.constants.F_OK, (err) => {
if (err) {
path_existing = "NO";
console.error(`❌ Directory "${path}" does NOT exist or is not accessible.`);
} else {
path_existing = "YES";
console.log(`✅ Directory "${path}" exists and is accessible.`);
}
});
@@ -21,7 +18,6 @@ export const load: PageServerLoad = (event: ServerLoadEvent) => {
if (!event.locals.user && event.url.pathname !== ROUTE_NAMES.ANMELDUNG)
throw redirect(303, ROUTE_NAMES.ANMELDUNG);
return {
user: event.locals.user,
path_existing
user: event.locals.user
};
};