Determines whether the passed thing exists, i.e., whether the passed java.io.File exists.
Determines whether the passed thing exists, i.e., whether the passed java.io.File exists.
the thing to check for existence
true if passed thing exists, false otherwise
Supertrait for typeclasses that enable the
existmatcher syntax.An
Existence[S]provides access to the "existence nature" of typeSin such a way thatexistmatcher syntax can be used with typeS. AScan be any type for which the concept of existence makes sense, such asjava.io.File. ScalaTest provides implicit implementations forjava.io.File. You can enable theexistmatcher syntax on your own typeUby defining aExistence[U]for the type and making it available implicitly.ScalaTest provides an implicit
Existenceinstance forjava.io.Filein theExistencecompanion object.