Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2765#discussion_r19721494
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/dstream/FileInputDStream.scala
 ---
    @@ -104,7 +107,25 @@ class FileInputDStream[K: ClassTag, V: ClassTag, F <: 
NewInputFormat[K,V] : Clas
         logDebug("Trying to get new files for time " + currentTime)
         lastNewFileFindingTime = System.currentTimeMillis
         val filter = new CustomPathFilter(currentTime)
    -    val newFiles = fs.listStatus(directoryPath, 
filter).map(_.getPath.toString)
    +
    +    def dfs(status: FileStatus, currentDepth: Int): List[FileStatus] = {
    +      val modTime = status.getModificationTime
    +      status match {
    +        case _ if currentDepth < 0 => Nil
    +        case _ if (!status.isDirectory) => {
    --- End diff --
    
    In general we don't use braces for `case` clauses.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to