Support excluding directories from syncing.