Skip to content

Commit c14daff

Browse files
committed
Fix copy that was changed to a move inadvertently
1 parent 8e39c16 commit c14daff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/Utils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ private[spark] object Utils extends Logging {
548548
// In the case of a local file, copy the local file to the target directory.
549549
// Note the difference between uri vs url.
550550
val sourceFile = if (uri.isAbsolute) new File(uri) else new File(url)
551-
copyFile(url, sourceFile, targetFile, fileOverwrite, removeSourceFile = true)
551+
copyFile(url, sourceFile, targetFile, fileOverwrite)
552552
case _ =>
553553
// Use the Hadoop filesystem library, which supports file://, hdfs://, s3://, and others
554554
val fs = getHadoopFileSystem(uri, hadoopConf)

0 commit comments

Comments
 (0)