Watchable

ammonite.interp.Watchable
See theWatchable companion trait
object Watchable

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Watchable.type

Members list

Type members

Classlikes

case class Path(p: Path) extends Watchable

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Watchable
class Object
trait Matchable
class Any
Show all
case class Value(f: () => Long) extends Watchable

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Watchable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def mtimeIfExists(p: Path): Long
def pathSignature(p: Path): Long

Recursively mtimes things, with the sole purpose of providing a number that will change if that file changes or that folder's contents changes

Recursively mtimes things, with the sole purpose of providing a number that will change if that file changes or that folder's contents changes

Ensure we include the file paths within a folder as part of the folder signature, as file moves often do not update the mtime but we want to trigger a "something changed" event anyway

Attributes