func CopyDir(srcDir, dstDir string) {
	filepath.Walk(srcDir, func(path string, info os.FileInfo, err error) error {
		if err != nil {
			return err
		}
		if path == srcDir {
			return nil
		}
		dstPath := ReparentPath(srcDir, dstDir, path)
		if info.IsDir() {
			CreateDir(dstPath)
			return nil
		}
		CopyFile(path, dstPath)
		return nil
	})
}
// CopyDir copies the full contents of one directory to another
CopyDir copies the full contents of one directory to another
// CopyDir copies the full contents of one directory to another
func CopyDir(srcDir, dstDir string) {
	filepath.Walk(srcDir, func(path string, info os.FileInfo, err error) error {
		if err != nil {
			return err
		}
		if path == srcDir {
			return nil
		}
		dstPath := ReparentPath(srcDir, dstDir, path)
		if info.IsDir() {
			CreateDir(dstPath)
			return nil
		}
		CopyFile(path, dstPath)
		return nil
	})
}
func CopyDir ( srcDir , dstDir string ) { filepath . Walk ( srcDir , func ( path string , info os . FileInfo , err error ) error { if err != nil { return err } if path == srcDir { return nil } dstPath := ReparentPath ( srcDir , dstDir , path ) if info . IsDir ( ) { CreateDir ( dstPath ) return nil } CopyFile ( path , dstPath ) return nil } ) }
CopyDir copies the full contents of one directory to another
CopyDir copies the full contents of one directory to another