diff --git a/cp-url-syntax.go b/cp-url-syntax.go index 5696206a..2632a898 100644 --- a/cp-url-syntax.go +++ b/cp-url-syntax.go @@ -76,14 +76,6 @@ func checkCopySyntaxTypeA(srcURLs []string, tgtURL string) { if !srcContent.Type.IsRegular() { fatalIf(errInvalidArgument().Trace(), "Source ‘"+srcURL+"’ is not a file.") } - - // Check target. - _, tgtContent, err := url2Stat(tgtURL) - fatalIf(err.Trace(srcURL), "Unable to stat target ‘"+tgtURL+"’.") - - if !tgtContent.Type.IsRegular() { - fatalIf(errInvalidArgument().Trace(), "Target ‘"+tgtURL+"’ is not a file.") - } } // checkCopySyntaxTypeB verifies if the source is a valid file and target is a valid dir.