We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e3d981 + 0f1cb39 commit 3bbc88dCopy full SHA for 3bbc88d
filesystem/index.ts
@@ -42,7 +42,7 @@ const allowedDirectories = args.map(dir =>
42
// Validate that all directories exist and are accessible
43
await Promise.all(args.map(async (dir) => {
44
try {
45
- const stats = await fs.stat(dir);
+ const stats = await fs.stat(expandHome(dir));
46
if (!stats.isDirectory()) {
47
console.error(`Error: ${dir} is not a directory`);
48
process.exit(1);
0 commit comments