object File
- Alphabetic
- By Inheritance
- File
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type Attributes = Seq[FileAttribute[_]]
- type CopyOptions = Seq[CopyOption]
- type Events = Seq[Kind[_]]
- type LinkOptions = Seq[LinkOption]
-
trait
Monitor
extends AnyRef
Implement this interface to monitor the root file
- type OpenOptions = Seq[OpenOption]
- type Order = Ordering[File]
- abstract class PathMatcherSyntax extends AnyRef
- class RandomAccessMode extends AnyRef
- type VisitOptions = Seq[FileVisitOption]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(uri: URI): File
- def apply(url: URL): File
-
def
apply(anchor: File, path: String, fragments: String*): File
Get File to path with help of reference anchor.
Get File to path with help of reference anchor.
Anchor is used as a reference in case that path is not absolute. Anchor could be path to directory or path to file. If anchor is file, then file's parent dir is used as an anchor.
If anchor itself is relative, then anchor is used together with current working directory.
NOTE: If anchor is non-existing path on filesystem, then it's always treated as file, e.g. it's last component is removed when it is used as an anchor.
- anchor
path to be used as anchor
- path
as string
- fragments
optional path fragments
- returns
absolute, normalize path
- def apply(path: String, fragments: String*): File
- implicit def apply(path: Path): File
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
copyResource(name: String)(out: File = ...): out.type
Copies a resource into a file
Copies a resource into a file
- out
File where resource is copied into, if not specified a temp file is created
- def currentWorkingDirectory: File
-
implicit
val
defaultCharset: Charset
The default charset used by better-files Note: It uses java.net.charset.Charset.defaultCharset() in general but if the default supports byte-order markers, it uses a more compliant version than the JDK one (see: https://github.com/pathikrit/better-files/issues/107)
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- def home: File
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newTemporaryDirectory(prefix: String = "", parent: Option[File] = None)(implicit attributes: Attributes = Attributes.default): File
- def newTemporaryFile(prefix: String = "", suffix: String = "", parent: Option[File] = None)(implicit attributes: Attributes = Attributes.default): File
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def numberOfOpenFileDescriptors(): Long
-
def
resource(name: String): File
Get a file from a resource Note: Use resourceToFile instead as this may not actually always load the file See: http://stackoverflow.com/questions/676250/different-ways-of-loading-a-file-as-an-inputstream
- def root: File
- def roots: Iterable[File]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def temp: File
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def usingTemporaryDirectory[U](prefix: String = "", parent: Option[File] = None, attributes: Attributes = Attributes.default)(f: (File) ⇒ U): U
- def usingTemporaryFile[U](prefix: String = "", suffix: String = "", parent: Option[File] = None, attributes: Attributes = Attributes.default)(f: (File) ⇒ U): U
-
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
- @throws( ... )
- object Attributes
- object CopyOptions
- object Events
- object LinkOptions
- object OpenOptions
- object Order
- object PathMatcherSyntax
- object RandomAccessMode
- object VisitOptions