Merge pull request #877 from EthBerryAdmin/patch-1

Allow ~ to be used in config for server-filesystem
This commit is contained in:
Ola Hungerford 2025-03-27 06:41:34 -07:00 • committed by GitHub
commit 1d45459e06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ const allowedDirectories = args.map(dir =>
// Validate that all directories exist and are accessible
await Promise.all(args.map(async (dir) => {
try {
const stats = await fs.stat(dir);
const stats = await fs.stat(expandHome(dir));
if (!stats.isDirectory()) {
console.error(`Error: ${dir} is not a directory`);
process.exit(1);