跳到主要内容

FileSystem🧪

✅️️ Methods

🔨FileSystem.getDirectory

参数必填标记类型描述原文
bucketFileSystemLocator✔️BucketFileSystemLocator
返回对象类型描述原文
directoryDirectory返回指定路径下的目录对象。
ENReturns the directory object at the path.

✅️️ Types

📌FileSystem.BucketFileSystemLocator

返回类型:object

属性必填标记类型描述原文
storageKey✔️Storage.SerializedStorageKey存储键
ENStorage key
bucketNamestring存储桶名称。不传递 bucketName 将检索默认存储桶。(https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#storage_buckets)
ENBucket name. Not passing a bucketName 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