Adding directory sync function - creating a collection of directories