非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
getMetadata
method allows to retrieve some metadata about the locked file.
var request = instanceOfLockedFile.getMetadata(param);
param
可选
true
means the metadata is expected and where
false
means it is not expected. Note that if the key is
undefined
, it is considered as if it were
true
. The following metadata are supported:
size
: will provide the size of the file
lastModified
: will provide the date when the file was last modified
A
FileRequest
object. In case of success, the request's
result
is an object with the metadata requested through the param object. They have the following format:
size
: a number
lastModified
:
日期
对象
| 规范 | 状态 | 注释 |
|---|---|---|
| FileSystem API | 编者草案 | Draft proposal |
LockedFile
abort()
append()
flush()
getMetadata()
readAsArrayBuffer()
readAsText()
truncate()
write()
FileError
FileException
FileHandle
FileRequest
FileSystem
FileSystemDirectoryEntry
FileSystemDirectoryEntrySync
FileSystemDirectoryReader
FileSystemDirectoryReaderSync
FileSystemEntry
FileSystemEntrySync
FileSystemFileEntry
FileSystemFileEntrySync
FileSystemFlags
FileSystemSync
HTMLInputElement
LocalFileSystem
LocalFileSystemSync
元数据
Window.requestFileSystem()
Window.resolveLocalFileSystemURL()
WorkerGlobalScope.requestFileSystemSync()