Skip to content

Commit

Permalink
Fix file name filter
Browse files Browse the repository at this point in the history
  • Loading branch information
tgravescs committed Mar 12, 2014
1 parent 6b783bd commit 61be271
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/scala/org/apache/spark/rdd/PipedRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ class PipedRDD[T: ClassTag](
* A FilenameFilter that accepts anything that isn't equal to the name passed in.
* @param name of file or directory to leave out
*/
class NotEqualsFileNameFilter(name: String) extends FilenameFilter {
class NotEqualsFileNameFilter(filterName: String) extends FilenameFilter {
def accept(dir: File, name: String): Boolean = {
!name.equals(name)
!name.equals(filterName)
}
}

Expand All @@ -92,7 +92,7 @@ class PipedRDD[T: ClassTag](
logDebug("taskDirectory = " + taskDirectory)
if (separateWorkingDir == true) {
val currentDir = new File(".")
logDebug("currentDir = " + currentDir)
logDebug("currentDir = " + currentDir.getAbsolutePath())
val taskDirFile = new File(taskDirectory)
taskDirFile.mkdirs()

Expand Down

0 comments on commit 61be271

Please sign in to comment.