Skip to main content
Module

x/earthstar/src/sync-fs/sync-fs-types.ts>SyncFsOptions

A specification and Javascript library for building online tools you can truly call your own.
Go to Latest
type alias SyncFsOptions
import { type SyncFsOptions } from "https://deno.land/x/earthstar@v9.3.3/src/sync-fs/sync-fs-types.ts";

Options for syncing a replica with a filesystem directory.

  • dirPath: The filesystem path of the directory to be synced
  • replica: The replica to be synced with the directory
  • keypair: The keypair to be used to sign all writes derived from changes on the filesystem.
  • allowDirtyDirWithoutManifest: Whether to allow syncing of a folder with pre-existing contents which has never been synced before.
definition: { dirPath: string; replica: Replica; keypair: AuthorKeypair; allowDirtyDirWithoutManifest: boolean; overwriteFilesAtOwnedPaths?: boolean; }