Packages

o

bloop.io

Paths

object Paths

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Paths
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class AttributedPath(path: AbsolutePath, lastModifiedTime: FileTime, size: Long) extends Product with Serializable

Value Members

  1. def attributedPathFilesUnder(base: AbsolutePath, pattern: String, logger: Logger, maxDepth: Int = Int.MaxValue): List[AttributedPath]

    Get all files under base that match the pattern pattern up to depth maxDepth.

    Get all files under base that match the pattern pattern up to depth maxDepth.

    The returned list of traversed files contains a last modified time attribute. This is a duplicated version of pathFilesUnder that returns the last modified time attribute for performance reasons, since the nio API exposes the attributed in the visitor and minimizes the number of underlying file system calls.

    Example: Paths.getAll(src, "glob:**.{scala,java}")

  2. final val bloopCacheDir: AbsolutePath
  3. final val bloopConfigDir: AbsolutePath
  4. final val bloopDataDir: AbsolutePath
  5. final val bloopLogsDir: AbsolutePath
  6. def delete(path: AbsolutePath): Unit

    Recursively delete path and all its content.

    Recursively delete path and all its content.

    Ignores any IO error that happens related to the deletion.

    path

    The path to delete

  7. def getCacheDirectory(dirName: String): AbsolutePath
  8. def isDirectoryEmpty(path: AbsolutePath): Boolean
  9. def list(path: AbsolutePath): List[AbsolutePath]

    Lists all top-level children of a path, none if the path doesn't exist.

    Lists all top-level children of a path, none if the path doesn't exist.

    Use this function always instead of using Files.list directly and wrapping it with collection converters. Files.list returns a stream that it is never closed otherwise, creating a lot of open file handles to directories that can make bloop crash.

  10. def pathFilesUnder(base: AbsolutePath, pattern: String, maxDepth: Int = Int.MaxValue): List[AbsolutePath]

    Get all files under base that match the pattern pattern up to depth maxDepth.

    Get all files under base that match the pattern pattern up to depth maxDepth.

    Example: Paths.pathFilesUnder(src, "glob:**.{scala,java}")