Compare

When this package is the right tool

sync-directory is a Node-local folder mirror: same machine, two paths, optional watch. It is not a remote deploy tool and not a backup system.

sync-directoryrsyncfs-extra.copyhand-rolled chokidar
Runs in Node without a binaryYesNeeds rsync on the hostYesYes
Watch + incremental eventsBuilt inNot the same modelNoYou build it
Hardlink modeYesPossible with flagsNoYou build it
exclude + forceSyncYes, forceSync winsfiltersfilter callbackYou build it
Remote / SSHNoYesNoNo
Best forTooling, local mirrors, pluginsServers and deploysOne-shot copyVery custom pipelines

Copy vs hardlink inside this library

Choose copy when another process watches the target (dev servers, bundlers). Choose hardlink when you want speed and both trees live on the same volume. Hardlinks share inodes; some watchers never emit a change on the target file.