hot reload is a privacy badger thing

This commit is contained in:
2024-08-26 16:11:43 -06:00
parent 3ed5736fd4
commit 0af6ffa8f5
3 changed files with 5 additions and 5 deletions

View File

@@ -185,8 +185,8 @@ export const courseMarkdownLoader = {
async directoryExists(directoryPath: string): Promise<boolean> {
try {
const stat = await fs.stat(directoryPath);
return stat.isDirectory();
await fs.access(directoryPath);
return true;
} catch {
return false;
}

View File

@@ -10,8 +10,8 @@ const basePath = process.env.STORAGE_DIRECTORY ?? "./storage";
const directoryExists = async (directoryPath: string): Promise<boolean> => {
try {
const stat = await fs.stat(directoryPath);
return stat.isDirectory();
await fs.access(directoryPath);
return true;
} catch {
return false;
}