edit to copy directory