server-api-lstat

原型

用于获取文件的状态。

1
2
3
// path:要获取的文件的文件路径
// buf:文件状态存储指针
int lstat(const char* path, struct stat* buf);

使用参考

参考 server-api-stat