Interface FileSystemSyncAccessHandle

    Available only in secure contexts.

    MDN Reference

    interface FileSystemSyncAccessHandle {
        close(): void;
        flush(): void;
        getSize(): number;
        read(
            buffer: AllowSharedBufferSource,
            options?: FileSystemReadWriteOptions,
        ): number;
        truncate(newSize: number): void;
        write(
            buffer: AllowSharedBufferSource,
            options?: FileSystemReadWriteOptions,
        ): number;
    }

    Methods

    • Parameters

      • newSize: number

      Returns void