sbt.io

package sbt.io

Type members

Classlikes

case object AllPassFilter extends NameFilter

A NameFilter that accepts all names. That is, accept always returns true.

A NameFilter that accepts all names. That is, accept always returns true.

final class AndFilter(val left: FileFilter, val right: FileFilter)
final class AndNameFilter(val left: NameFilter, val right: NameFilter) extends NameFilter
sealed trait BaseSyntax
final class CopyOptions extends Serializable

The options for the copy operation in IO.

The options for the copy operation in IO.

Value parameters:
overwrite

A source file is always copied if overwrite is true. If overwrite is false, the source is only copied if the target is missing or is older than the source file according to last modified times. If the source is a directory, the corresponding directory is created.

preserveExecutable

If true the executable properties are copied.

preserveLastModified

If true the last modified times are copied.

Companion:
object
Companion:
class
case object DirectoryFilter extends FileFilter with PathFilter

A FileFilter that selects files that are a directory according to java.io.File.isDirectory.

A FileFilter that selects files that are a directory according to java.io.File.isDirectory.

final class ExactFileFilter(val file: File) extends FileFilter

A FileFilter that only accepts a single input file.

A FileFilter that only accepts a single input file.

final class ExactFilter(val matchName: String) extends NameFilter

A NameFilter that accepts a name if it is exactly equal to matchName.

A NameFilter that accepts a name if it is exactly equal to matchName.

case object ExistsFileFilter extends FileFilter

A FileFilter that selects files that exist according to java.io.File.exists.

A FileFilter that selects files that exist according to java.io.File.exists.

final class ExtensionFilter(val extensions: String*) extends NameFilter

Represents a filter for files that end in a given list of extensions.

Represents a filter for files that end in a given list of extensions.

Value parameters:
extensions

the extensions to accept

Companion:
object
Companion:
class
trait FileFilter extends FileFilter

A java.io.FileFilter with additional methods for combining filters.

A java.io.FileFilter with additional methods for combining filters.

Companion:
object
object FileFilter
Companion:
class
object GlobFilter

Constructs a filter from a String, interpreting wildcards. See the GlobFilter.apply method.

Constructs a filter from a String, interpreting wildcards. See the GlobFilter.apply method.

object Hash
case object HiddenFileFilter extends FileFilter with PathFilter

A FileFilter that selects files that are hidden according to java.nio.file.Files.isHidden or if they start with a dot (.).

A FileFilter that selects files that are hidden according to java.nio.file.Files.isHidden or if they start with a dot (.).

object IO

A collection of File, URL, and I/O utility methods.

A collection of File, URL, and I/O utility methods.

sealed abstract class IOSyntax0 extends IOSyntax1
sealed abstract class IOSyntax1 extends BaseSyntax
object JavaMilli
final class LinkOptionPath(p: Path, lo: Vector[LinkOption]) extends RichNioPath
abstract class Mapper
trait NameFilter extends FileFilter

A filter on Strings. This also functions as a FileFilter by applying the String filter to the value of a File's getName.

A filter on Strings. This also functions as a FileFilter by applying the String filter to the value of a File's getName.

Companion:
object
object NameFilter
Companion:
class
final class NotFilter(val fileFilter: FileFilter)
final class NotNameFilter(val fileFilter: NameFilter) extends NameFilter
case object NothingFilter extends NameFilter

A NameFilter that accepts nothing. That is, accept always returns false.

A NameFilter that accepts nothing. That is, accept always returns false.

final class OrFilter(val left: FileFilter, val right: FileFilter)
final class OrNameFilter(val left: NameFilter, val right: NameFilter) extends NameFilter
object Path extends Mapper
object PathFinder
Companion:
class
sealed abstract class PathFinder extends PathLister with PathFinderDefaults

A path finder constructs a set of paths. The set is evaluated by a call to the get method. The set will be different for different calls to get if the underlying filesystem has changed.

A path finder constructs a set of paths. The set is evaluated by a call to the get method. The set will be different for different calls to get if the underlying filesystem has changed.

Companion:
object
sealed trait PathFinderDefaults extends Combinator
sealed trait PathLister
Companion:
object
object PathLister
Companion:
class
final class PatternFilter(val parts: Seq[String], val pattern: Pattern) extends NameFilter

A NameFilter that accepts a name if it matches the regular expression defined by pattern.

A NameFilter that accepts a name if it matches the regular expression defined by pattern.

final class PrefixFilter(val prefix: String) extends NameFilter
case object RegularFileFilter extends FileFilter with PathFilter

A FileFilter that selects files that are a directory according to java.io.File.isFile.

A FileFilter that selects files that are a directory according to java.io.File.isFile.

final class RichFile(val asFile: File) extends AnyVal with RichNioPath
sealed trait RichNioPath
sealed class SimpleFileFilter(val acceptFunction: File => Boolean) extends FileFilter

A FileFilter that selects files according the predicate acceptFunction.

A FileFilter that selects files according the predicate acceptFunction.

sealed class SimpleFilter(val acceptFunction: String => Boolean) extends NameFilter

A NameFilter that accepts a name if the predicate acceptFunction accepts it.

A NameFilter that accepts a name if the predicate acceptFunction accepts it.

final class SuffixFilter(val suffix: String) extends NameFilter
abstract class Using[Source, T]
Companion:
object
object Using
Companion:
class
Companion:
class

A service that will monitor the file system for file creation, deletion and modification.

A service that will monitor the file system for file creation, deletion and modification.

Companion:
object
object syntax extends IOSyntax0