Skip to content

Commit

Permalink
Fix copy that was changed to a move inadvertently
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Dec 16, 2014
1 parent 8e39c16 commit c14daff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/util/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ private[spark] object Utils extends Logging {
// In the case of a local file, copy the local file to the target directory.
// Note the difference between uri vs url.
val sourceFile = if (uri.isAbsolute) new File(uri) else new File(url)
copyFile(url, sourceFile, targetFile, fileOverwrite, removeSourceFile = true)
copyFile(url, sourceFile, targetFile, fileOverwrite)
case _ =>
// Use the Hadoop filesystem library, which supports file://, hdfs://, s3://, and others
val fs = getHadoopFileSystem(uri, hadoopConf)
Expand Down

0 comments on commit c14daff

Please sign in to comment.