We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4a13fe commit dced8ebCopy full SHA for dced8eb
core/src/main/scala/org/apache/spark/SparkContext.scala
@@ -1092,9 +1092,8 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
1092
*/
1093
def addFile(path: String, recursive: Boolean): Unit = {
1094
val uri = new URI(path)
1095
- val file = new File(path)
1096
val schemeCorrectedPath = uri.getScheme match {
1097
- case null | "local" => "file:" + file.getCanonicalPath
+ case null | "local" => "file:" + new File(path).getCanonicalPath
1098
case _ => path
1099
}
1100
0 commit comments