Skip to content

Commit 5312f50

Browse files
committed
fix(explorer): support home sign
1 parent 9f844fe commit 5312f50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

addons/explorer/src/main/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ export default () => {
4040
})
4141

4242
commas.ipcMain.handle('access-directory', async (event, directory) => {
43+
const dir = commas.helper.resolveHome(directory)
4344
try {
44-
await fs.promises.access(directory)
45-
return directory
45+
await fs.promises.access(dir)
46+
return dir
4647
} catch {
4748
// ignore
4849
}

0 commit comments

Comments
 (0)