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

    https://github.com/apache/spark/pull/2765#discussion_r19323975
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/dstream/FileInputDStream.scala
 ---
    @@ -118,6 +120,37 @@ class FileInputDStream[K: ClassTag, V: ClassTag, F <: 
NewInputFormat[K,V] : Clas
         (newFiles, filter.minNewFileModTime)
       }
     
    +  def getPathList(path:Path, fs:FileSystem):List[Path]={
    +    var pathList = List[Path]()
    +    pathList = path:: pathList
    +    var tmp =List[Path]()
    +    tmp=path::tmp
    +    for(i <- 0 until depth){
    +      tmp =getSubPathList(tmp,fs)
    +      pathList=tmp:::pathList
    +    }
    +    pathList.filter(path=>{
    +      val  modTime = fs.getFileStatus(path).getModificationTime
    +      logDebug(s"Mod time for $path is $modTime")
    +      if (modTime > ignoreTime) {
    +        logDebug(s"Mod time $modTime more than ignore time $ignoreTime")
    +        true
    +      }
    +      else false
    --- End diff --
    
    Please reformat this `if` according to the coding convention, like this:
    
    ```scala
    if (...) {
      ...
    } else {
      ...
    }
    ```


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to