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
File
instance from a parentFile
and a child pathname string.Creates a new
File
instance from a parentFile
and a child pathname string.- file
the child pathname string
- returns
the new
File
instance
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
def
ancestors: Stream[File]
Returns a lazy list containing a
File
ancestors.Returns a lazy list containing a
File
ancestors.- 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
Future
containingvalue
.Creates an already completed
Future
containingvalue
.- returns
the already completed
Future
with 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
true
if the file ends withext
,false
otherwise
- Annotations
- @inline()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
option: Option[FileOps]
Creates an
Option
containingvalue
.Creates an
Option
containingvalue
.- returns
Some(value)
ifvalue
is notnull
,None
otherwise
- 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)