{"id":15890605,"url":"https://github.com/dimfeld/treewatcher","last_synced_at":"2025-04-02T17:22:03.969Z","repository":{"id":17099397,"uuid":"19864839","full_name":"dimfeld/treewatcher","owner":"dimfeld","description":"Recursive Filesystem Tree Watcher for Go","archived":false,"fork":false,"pushed_at":"2014-12-16T04:46:13.000Z","size":133,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T08:09:57.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimfeld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-16T17:26:27.000Z","updated_at":"2020-10-17T13:34:15.000Z","dependencies_parsed_at":"2022-08-29T04:01:40.882Z","dependency_job_id":null,"html_url":"https://github.com/dimfeld/treewatcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Ftreewatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Ftreewatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Ftreewatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Ftreewatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimfeld","download_url":"https://codeload.github.com/dimfeld/treewatcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246856799,"owners_count":20845020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T07:07:01.336Z","updated_at":"2025-04-02T17:22:03.947Z","avatar_url":"https://github.com/dimfeld.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"treewatcher [![Build Status](https://travis-ci.org/dimfeld/treewatcher.png?branch=master)](https://travis-ci.org/dimfeld/treewatcher) [![GoDoc](http://godoc.org/github.com/dimfeld/treewatcher?status.png)](http://godoc.org/github.com/dimfeld/treewatcher)\n===========\n\nRecursive Filesystem Tree Watcher for Go\n\nThis is a wrapper around the fsnotify functionality from [howeyc/fsnotify](https://github.com/howeyc/fsnotify).\n\nIt exposes a similar interface, with an Event channel and an Error channel. All\ndata read from the fsnotify object is passed through to the client. \n\nWhen the TreeWatcher sees that a directory was added, it automatically starts\nwatching that directory and all directories under it.\n\n## Usage\n\n````go\ntw = treewatcher.New()\ndefer tw.Close()\ntw.WatchTree(\"/tmp\")\n\nfor {\n    select {\n    event := \u003c- tw.Event:\n        handleEvent(event)\n    error := \u003c- tw.Error:\n        panic(error)\n    }\n}\n````\n\nFor a real usage example, see [dimfeld/simpleblog/fswatcher.go](https://github.com/dimfeld/simpleblog/blob/master/fswatcher.go).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimfeld%2Ftreewatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimfeld%2Ftreewatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimfeld%2Ftreewatcher/lists"}