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

    https://github.com/apache/spark/pull/4246#discussion_r27848179
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala 
---
    @@ -201,6 +201,22 @@ class SparkHadoopUtil extends Logging {
         val baseStatus = fs.getFileStatus(basePath)
         if (baseStatus.isDir) recurse(basePath) else Array(baseStatus)
       }
    +
    +  /**
    +   * Get [[FileStatus]] objects for all leaf children (files) under the 
given base path. If the
    +   * given path points to a file, return a single-element collection 
containing [[FileStatus]] of
    +   * that file. Uses pathFilter to filter out certain filestatuses
    +   */
    +  def listLeafStatusesFiltered(fs: FileSystem, basePath: Path,
    +    filter: Option[PathFilter]): Seq[FileStatus] = {
    --- End diff --
    
    Indent as follows: 
https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide
    ```scala
    def listLeafStatusesFiltered(
        fs: FileSystem,
        basePath: Path,
        filter: Option[PathFilter]): Seq[FileStatus] = {
      ...
    ```


---
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