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 202f6c5 + d7ea463 commit 1d45459Copy full SHA for 1d45459
src/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