// Copy copies src to dest, doesn't matter if src is a directory or a file
Copy copies src to dest, doesn't matter if src is a directory or a file
// Copy copies src to dest doesn ' t matter if src is a directory or a file
func Copy(src, dest string) error {
	info, err := os.Lstat(src)
	if err != nil {
		return err
	}
	err = copy(src, dest, info)
	if err != nil {
		if _, ok := err.(*UnsupportedFileTypeError); ok {
			if !IgnoreUnsupportedFileTypes {
				return err
			}
		} else {
			return err
		}
	}
	return nil
}
func Copy ( src , dest string ) error { info , err := os . Lstat ( src ) if err != nil { return err } err = copy ( src , dest , info ) if err != nil { if _ , ok := err . ( * UnsupportedFileTypeError ) ; ok { if ! IgnoreUnsupportedFileTypes { return err } } else { return err } } return nil }
Copy copies src to dest, doesn't matter if src is a directory or a file
Copy copies src to dest doesn ' t matter if src is a directory or a file
// If we encountered an unsupported file type, exit only if we don't ignore them