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 0ff3fa8 commit d594e16Copy full SHA for d594e16
core/src/main/scala/org/apache/spark/SparkContext.scala
@@ -1093,7 +1093,7 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
1093
def addFile(path: String, recursive: Boolean): Unit = {
1094
val uri = new URI(path)
1095
val schemeCorrectedPath = uri.getScheme match {
1096
- case null | "local" => "file:" + new File(path).getCanonicalPath
+ case null | "local" => new File(path).getCanonicalFile.toURI.toString
1097
case _ => path
1098
}
1099
0 commit comments