Package

os

watch

Permalink

package watch

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. watch
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class CFAllocatorRef extends PointerByReference

    Permalink
  2. class CFArrayRef extends PointerByReference

    Permalink
  3. class CFIndex extends NativeLong

    Permalink
    Annotations
    @SerialVersionUID()
  4. class CFRunLoopRef extends PointerByReference

    Permalink
  5. class CFStringRef extends PointerByReference

    Permalink
  6. trait CarbonApi extends Library

    Permalink
  7. trait FSEventStreamCallback extends Callback

    Permalink
  8. class FSEventStreamRef extends PointerByReference

    Permalink
  9. class FSEventsWatcher extends Watcher

    Permalink
  10. class WatchServiceWatcher extends Watcher

    Permalink
  11. abstract class Watcher extends AutoCloseable

    Permalink

Value Members

  1. object CFIndex extends Serializable

    Permalink
    Annotations
    @SerialVersionUID()
  2. object CFStringRef

    Permalink
  3. object CarbonApi

    Permalink
  4. def watch(roots: Seq[Path], onEvent: (Set[Path]) ⇒ Unit, logger: (String, Any) ⇒ Unit = (_, _) => ()): AutoCloseable

    Permalink

    Efficiently watches the given roots folders for changes.

    Efficiently watches the given roots folders for changes. Any time the filesystem is modified within those folders, the onEvent callback is called with the paths to the changed files or folders.

    Once the call to watch returns, onEvent is guaranteed to receive a an event containing the path for:

    - Every file or folder that gets created, deleted, updated or moved within the watched folders

    - For copied or moved folders, the path of the new folder as well as every file or folder within it.

    - For deleted or moved folders, the root folder which was deleted/moved, but *without* the paths of every file that was within it at the original location

    Note that watch does not provide any additional information about the changes happening within the watched roots folder, apart from the path at which the change happened. It is up to the onEvent handler to query the filesystem and figure out what happened, and what it wants to do.

    watch currently only supports Linux and Mac-OSX, and not Windows.

Inherited from AnyRef

Inherited from Any

Ungrouped