Skip to content

Commit

Permalink
Windows is not cooperating
Browse files Browse the repository at this point in the history
Splitting a string on java.io.File.separator on Windows (i.e. "\") fails
with a PatternSyntaxException.
  • Loading branch information
andrewor14 committed May 16, 2014
1 parent 456d844 commit 1866f85
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 @@ -1101,7 +1101,7 @@ private[spark] object Utils extends Logging {
* Strip the directory from a path name
*/
def stripDirectory(path: String): String = {
path.split(File.separator).last
new File(path).getName
}

/**
Expand Down

0 comments on commit 1866f85

Please sign in to comment.