Implement this as rsync like algorithm. Run the test: mod gfilesyncer_test.go & go test The core sync algorthm is doing.