Skip to content

[node_io] Implement FileSystemEntity.watch using fs.watch or fs.watchDir #116

@nikeokoronkwo

Description

@nikeokoronkwo

I was trying to watch for events in a folder, and noticed that the watch method is not implemented.

@override
  Stream<io.FileSystemEvent> watch(
      {int events = io.FileSystemEvent.all, bool recursive = false}) {
    // TODO: implement watch
    throw UnimplementedError();
  }

I was thinking maybe this could be implemented using Node's fs.watch and fs.watchDir.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions