case class Path(path: java.nio.file.Path) extends Product with Serializable
Wrapper around java.nio.file.Path that adds useful methods, is Serializable, and fixes some provider/custom-scheme-loading issues (see FileSystems).
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Path
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Path(path: java.nio.file.Path)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(suffix: String): Path
Append
suffix
to the basename of this Path. - def /(basename: Symbol): Path
- def /(basename: String): Path
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def basename(extension: Boolean = true): String
- def basename: String
- def basenameNoExtension: String
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def delete(recursive: Boolean = false): Unit
- def depth: Int
- def endsWith(suffix: String): Boolean
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def exists: Boolean
- def extension: String
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def inputStream: InputStream
- def isDirectory: Boolean
- def isFile: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lines: Iterator[String]
- def list: Iterator[Path]
- def list(glob: String): Iterator[Path]
- def mkdirs: Unit
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def outputStream(mkdirs: Boolean): OutputStream
- def outputStream(append: Boolean, mkdirs: Boolean = false): OutputStream
- def outputStream: OutputStream
- def parent: Path
- def parentOpt: Option[Path]
- val path: java.nio.file.Path
- def printStream(mkdirs: Boolean): PrintStream
- def printStream(append: Boolean, mkdirs: Boolean = false): PrintStream
- def printStream: PrintStream
- def read: String
- def readBytes: Array[Byte]
- def size: Long
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
In general, delegate to URI's
toString
.In general, delegate to URI's
toString
.In case of relative paths, take a short-cut to preserve relative-ness.
- Definition Classes
- Path → AnyRef → Any
- def uri: URI
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def walk: Iterator[Path]
- def write(str: String): Unit
- def writeLines(lines: Iterable[String]): Unit
-
def
writeReplace: AnyRef
Delegate serialization to SerializablePath
Delegate serialization to SerializablePath
- Annotations
- @throws( ... )