Skip to content

go.exp/fsnotify: Watching directories themselves. #7788

@gopherbot

Description

@gopherbot

by larzconwell:

Currently when you watch a directory it watches all the files in the directory, it think
it'd be nice if it were possible to watch just the directory.

Here's the use case I'm doing. I am watching all the paths in a directory tree but a
user can give a set of files/directories to skip watching.

It's kind of difficult because if you RemoveWatch one of the files and it's directory
still needs to be watched you'll still get events for it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions