Filesystem can handle copying folders, why are you doing this manually? In fact, this way will run into problems with mount points.