Skip to content

Commit 12ebb57

Browse files
authored
Small documentation fix to RegularFileFilter
Changed the documentation to say that the filter selects normal files instead of saying that the filter selects directories.
1 parent a65e15c commit 12ebb57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io/src/main/scala/sbt/io/NameFilter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ case object DirectoryFilter extends FileFilter with PathFilter {
223223
override def accept(path: NioPath, attributes: FileAttributes): Boolean = attributes.isDirectory
224224
}
225225

226-
/** A [[FileFilter]] that selects files that are a directory according to `java.io.File.isFile`. */
226+
/** A [[FileFilter]] that selects files that are a normal file according to `java.io.File.isFile`. */
227227
case object RegularFileFilter extends FileFilter with PathFilter {
228228
def accept(file: File): Boolean = file.isFile
229229
override def accept(path: NioPath, attributes: FileAttributes): Boolean = attributes.isRegularFile

0 commit comments

Comments
 (0)