@backblaze-labs/b2-sdk - v0.2.0
    Preparing search index...

    Interface SyncFolder

    A scannable folder (local or B2) that yields files relative to its sync root.

    Built-in scanners currently sort before yielding. Large local trees or B2 prefixes may therefore require memory proportional to the scanned entries; B2 scans also group listed versions before yielding. For B2, maxScanEntries counts every listed file version before prefix, safety, and filter checks, and exclude filters or non-literal includes do not bound B2 listing calls.

    interface SyncFolder {
        appliesScanFilters?: true;
        appliesScanSorting?: true;
        type: "b2" | "local";
        scan(options?: SyncScanOptions): AsyncIterable<SyncPath>;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    appliesScanFilters?: true

    True when scan(filters) already enforces include/exclude filters itself as an optimization. The synchronizer still reapplies filters after custom scanner output as the SDK policy boundary. Custom folders that set this should use the exported filter helpers from @backblaze-labs/b2-sdk/sync to stay aligned with the SDK glob and RegExp dialect.

    appliesScanSorting?: true

    True when scan(filters) already yields entries in compareSyncRelativePaths order. Custom folders that omit this are sorted by synchronize() before pairing.

    type: "b2" | "local"

    Whether this folder is local or in B2.

    Methods