Feat: Multiplayer sessions added using CRUD database.
This commit is contained in:
19
node_modules/path-exists/index.js
generated
vendored
Normal file
19
node_modules/path-exists/index.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import fs, {promises as fsPromises} from 'node:fs';
|
||||
|
||||
export async function pathExists(path) {
|
||||
try {
|
||||
await fsPromises.access(path);
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export function pathExistsSync(path) {
|
||||
try {
|
||||
fs.accessSync(path);
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user