Deno.lstatsync
lstatSync
-
lstatSync(path: string): FileInfo
-
同步方式解析给定的
path
,并返回Deno.FileInfo
。如果path
是一个 符号链接,则将返回符号链接的信息,而不是该符号链接引用的文件信息。Synchronously returns a
Deno.FileInfo
for the specifiedpath
. Ifpath
is a symlink, information for the symlink will be returned instead of what it points to..const fileInfo = Deno.lstatSync("hello.txt"); assert(fileInfo.isFile);
需要
allow-read
权限。Requires
allow-read
permission.
参数
- ##### path: string