Skip to content

Commit 3bbc88d

Browse files
authored
Merge pull request #877 from EthBerryAdmin/patch-1
Allow ~ to be used in config for server-filesystem
2 parents 0e3d981 + 0f1cb39 commit 3bbc88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filesystem/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const allowedDirectories = args.map(dir =>
4242
// Validate that all directories exist and are accessible
4343
await Promise.all(args.map(async (dir) => {
4444
try {
45-
const stats = await fs.stat(dir);
45+
const stats = await fs.stat(expandHome(dir));
4646
if (!stats.isDirectory()) {
4747
console.error(`Error: ${dir} is not a directory`);
4848
process.exit(1);

0 commit comments

Comments
 (0)