FileSystemWritableFileStream.seek()
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The seek()
method of the
FileSystemWritableFileStream
interface updates the current file cursor
offset to the position (in bytes) specified when calling the method.
Syntax
FileSystemWritableStream.seek(position).then(...);
Parameters
position
-
An unsigned long describing the byte position from the top (beginning) of the file.
Return value
Promise
which returns undefined.
Exceptions
- NotAllowedError
-
If the
PermissionStatus.state
is not 'granted'. - TypeError
-
If
position
is not defined or of type unsigned long.
Examples
Todo
Specifications
Specification |
---|
File System Access # dom-filesystemwritablefilestream-seek |
Browser compatibility
BCD tables only load in the browser