Deno.lstatsync
lstatSync
-
lstatSync(path: string): FileInfo
-
同步方式解析给定的
path,并返回Deno.FileInfo。如果path是一个 符号链接,则将返回符号链接的信息,而不是该符号链接引用的文件信息。Synchronously returns a
Deno.FileInfofor the specifiedpath. Ifpathis 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-readpermission.
参数
- ##### path: string