Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The FileSystemSyncAccessHandle
interface of the File System API represents a synchronous handle to a file system entry.
This class is only accessible inside dedicated Web Workers (so that its methods do not block execution on the main thread) for files within the origin private file system, which is not visible to end-users.
As a result, its methods are not subject to the same security checks as methods running on files within the user-visible file system, and so are much more performant. This makes them suitable for significant, large-scale file updates such as SQLite database modifications.
The interface is accessed through the FileSystemFileHandle.createSyncAccessHandle()
method.
Note: In earlier versions of the spec, close()
, flush()
, getSize()
, and truncate()
were wrongly specified as asynchronous methods, and older versions of some browsers implement them in this way. However, all current browsers that support these methods implement them as synchronous methods.