Begin to implement dir sync.