implicit final class FileOps extends AnyVal
- Alphabetic
- By Inheritance
- FileOps
- AnyVal
- Any
- by AnyOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FileOps(value: File)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
- def +(other: String): String
- def ->[B](y: B): (FileOps, B)
-
def
/(file: String): File
Creates a new
Fileinstance from a parentFileand a child pathname string.Creates a new
Fileinstance from a parentFileand a child pathname string.- file
the child pathname string
- returns
the new
Fileinstance
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
ancestors: Stream[File]
Returns a lazy list containing a
Fileancestors.Returns a lazy list containing a
Fileancestors.- returns
the lazy list containing all ancestors
- Annotations
- @SuppressWarnings()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ensuring(cond: (FileOps) ⇒ Boolean, msg: ⇒ Any): FileOps
- def ensuring(cond: (FileOps) ⇒ Boolean): FileOps
- def ensuring(cond: Boolean, msg: ⇒ Any): FileOps
- def ensuring(cond: Boolean): FileOps
- def formatted(fmtstr: String): String
-
def
future: Future[FileOps]
Creates an already completed
Futurecontainingvalue.Creates an already completed
Futurecontainingvalue.- returns
the already completed
Futurewith the specified result
- Implicit
- This member is added by an implicit conversion from FileOps to AnyOps[FileOps] performed by method AnyOps in scail.commons.ops.
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
hasExtension(extension: String): Boolean
Whether a file ends with a given extension.
Whether a file ends with a given extension. A leading dot (
".") is automatically inserted if it doesn't exist already.- extension
the file extension optionally including the dot, e.g.
".jpg"- returns
trueif the file ends withext,falseotherwise
- Annotations
- @inline()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
option: Option[FileOps]
Creates an
Optioncontainingvalue.Creates an
Optioncontainingvalue.- returns
Some(value)ifvalueis notnull,Noneotherwise
- Implicit
- This member is added by an implicit conversion from FileOps to AnyOps[FileOps] performed by method AnyOps in scail.commons.ops.
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
path: Seq[String]
Returns a list of path ancestors split by the OS-specific path separator.
Returns a list of path ancestors split by the OS-specific path separator.
- returns
the list of path ancestors
-
def
tap(f: (FileOps) ⇒ Unit): FileOps
Applies side-effectul method to
value, returningvalue.Applies side-effectul method to
value, returningvalue.- f
the side-effectful method to apply to
value- returns
value
- Implicit
- This member is added by an implicit conversion from FileOps to AnyOps[FileOps] performed by method AnyOps in scail.commons.ops.
- Definition Classes
- AnyOps
-
def
toString(): String
- Definition Classes
- Any
- def →[B](y: B): (FileOps, B)