Skip to content

Commit bb6651f

Browse files
committed
use stat() instead of lstat() to resolve symlinks
1 parent 84b6816 commit bb6651f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

denops/ddc-sources/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type FindPoint = {
3131

3232
const existsDir = async (filePath: string): Promise<boolean> => {
3333
try {
34-
return (await Deno.lstat(filePath)).isDirectory;
34+
return (await Deno.stat(filePath)).isDirectory;
3535
} catch (_e: unknown) {
3636
// Should not care about error.
3737
// https://github.com/denoland/deno_std/issues/1216

0 commit comments

Comments
 (0)