object Paths
- Alphabetic
- By Inheritance
- Paths
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class AttributedPath(path: AbsolutePath, lastModifiedTime: FileTime, size: Long) extends Product with Serializable
Value Members
-
def
attributedPathFilesUnder(base: AbsolutePath, pattern: String, logger: Logger, maxDepth: Int = Int.MaxValue): List[AttributedPath]
Get all files under
base
that match the patternpattern
up to depthmaxDepth
.Get all files under
base
that match the patternpattern
up to depthmaxDepth
.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}")
- final val bloopCacheDir: AbsolutePath
- final val bloopConfigDir: AbsolutePath
- final val bloopDataDir: AbsolutePath
- final val bloopLogsDir: AbsolutePath
-
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
- def getCacheDirectory(dirName: String): AbsolutePath
- def isDirectoryEmpty(path: AbsolutePath): Boolean
-
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. -
def
pathFilesUnder(base: AbsolutePath, pattern: String, maxDepth: Int = Int.MaxValue): List[AbsolutePath]
Get all files under
base
that match the patternpattern
up to depthmaxDepth
.Get all files under
base
that match the patternpattern
up to depthmaxDepth
.Example:
Paths.pathFilesUnder(src, "glob:**.{scala,java}")