mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-21 13:25:15 +02:00
Merge pull request #877 from EthBerryAdmin/patch-1
Allow ~ to be used in config for server-filesystem
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user