公告板
版本库
filestore
活动
搜索
登录
data
/
iot/beien-communication
贝恩透析机通讯
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
init master
chenyc
2024-12-02
c8dde21585f90d052bea1d95f8a5455cac5cc7de
[data/iot/beien-communication.git]
/
src
/
demos
/
node.ts
1
2
3
4
5
6
7
8
9
import { lstat } from 'node:fs/promises'
import { cwd } from 'node:process'
lstat(cwd()).then(stats => {
console.log('[fs.lstat]', stats)
console.log('-----')
}).catch(err => {
console.error(err)
})