dfs: support copy directory
Merge pull request #237 from prife/dfs

dfs: support copy directory