FileSystem🧪
✅️️ Methods
🔨FileSystem.getDirectory
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| bucketFileSystemLocator | ✔️ | BucketFileSystemLocator |
| 返回对象 | 类型 | 描述 | 原文 |
|---|---|---|---|
| directory | Directory | 返回指定路径下的目录对象。 | ENReturns the directory object at the path. |
✅️️ Types
📌FileSystem.BucketFileSystemLocator
返回类型:object
| 属性 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| storageKey | ✔️ | Storage.SerializedStorageKey | 存储键 | ENStorage key | |
| bucketName | string | 存储桶名称。不传递 bucketName 将检索默认存储桶。(https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#storage_buckets) | ENBucket name. Not passing abucketName will retrieve the default Bucket. (https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#storage_buckets) | ||
| pathComponents | ✔️ | array[string] | 使用每个路径组件作为数组项的目录路径。 | ENPath to the directory using each path component as an array item. |
📌FileSystem.Directory
返回类型:object
| 属性 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| name | ✔️ | string | |||
| nestedDirectories | ✔️ | array[string] | |||
| nestedFiles | ✔️ | array[File] | 此目录下直接嵌套的文件。 | ENFiles that are directly nested under this directory. |
📌FileSystem.File
返回类型:object
| 属性 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| name | ✔️ | string | |||
| lastModified | ✔️ | Network.TimeSinceEpoch | 时间戳 | ENTimestamp | |
| size | ✔️ | number | 字节大小 | ENSize in bytes | |
| type | ✔️ | string |