Add API for moving doc around the dirs