Huggingface.js 文档
接口:ListFileEntry
加入 Hugging Face 社区
并获得增强的文档体验
开始使用
接口:ListFileEntry
属性
lastCommit
• Optional
lastCommit: Object
仅当在 listFiles 调用中将 expand 设置为 true 时才获取。
类型声明
名称 | 类型 |
---|---|
date | 字符串 |
id | 字符串 |
title | 字符串 |
定义在
lfs
• Optional
lfs: Object
类型声明
名称 | 类型 | 描述 |
---|---|---|
oid | 字符串 | - |
pointerSize | 数字 | 原始指针文件的大小,100~200 字节 |
size | 数字 | - |
定义在
oid
• oid: string
定义在
path
• path: string
定义在
securityFileStatus
• Optional
securityFileStatus: unknown
仅当在 listFiles 调用中将 expand 设置为 true 时才获取。
定义在
size
• size: number
定义在
type
• type: "unknown"
| "file"
| "directory"
定义在
xetHash
• Optional
xetHash: string
Xet 支持的哈希,一种用于替换 LFS 处理大文件的新协议。