Skip to content

nextStep

nextStep(lastSeen, changes, now, quietMs, seen?): WatchStep

Defined in: ../src/watch.ts:54

The decision, from what changed and when. changes should cover at least LATE_SYNC_MS before lastSeen (lookbackFrom); a local folder lists everything, which is fine too. A file counts if it changed after lastSeen, or if it is recent and not in seen with the same modified time: one that synced late.

string | null

readonly Change[]

number

number

Seen

WatchStep