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 e03f289 commit 1784239Copy full SHA for 1784239
core/src/main/scala/org/apache/spark/util/Utils.scala
@@ -1658,16 +1658,6 @@ private[spark] object Utils extends Logging {
1658
*/
1659
val windowsDrive = "([a-zA-Z])".r
1660
1661
- /**
1662
- * Format a path such that it can be safely passed to a URI.
1663
- */
1664
- def formatPath(path: String, windows: Boolean): String = {
1665
- val formatted = path.replace(" ", "%20")
1666
-
1667
- // In Windows, the file separator is a backslash, but this is inconsistent with the URI format
1668
- if (windows) formatted.replace("\\", "/") else formatted
1669
- }
1670
1671
/**
1672
* Indicates whether Spark is currently running unit tests.
1673
0 commit comments