mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
hot reload is a privacy badger thing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user