{"id":16616455,"url":"https://github.com/findnextstep/filewatcher","last_synced_at":"2025-10-07T06:36:42.497Z","repository":{"id":165023725,"uuid":"194696924","full_name":"findNextStep/fileWatcher","owner":"findNextStep","description":"watch file change or device change","archived":false,"fork":false,"pushed_at":"2020-02-19T15:50:00.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-11T02:30:58.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/findNextStep.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-01T15:15:22.000Z","updated_at":"2020-02-19T15:50:02.000Z","dependencies_parsed_at":"2024-03-22T15:30:21.084Z","dependency_job_id":null,"html_url":"https://github.com/findNextStep/fileWatcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/findNextStep/fileWatcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findNextStep%2FfileWatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findNextStep%2FfileWatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findNextStep%2FfileWatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findNextStep%2FfileWatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/findNextStep","download_url":"https://codeload.github.com/findNextStep/fileWatcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findNextStep%2FfileWatcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278734227,"owners_count":26036402,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12T02:13:10.963Z","updated_at":"2025-10-07T06:36:42.456Z","avatar_url":"https://github.com/findNextStep.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fileWatcher\n\n- linux下的文件更改监视器\n\n- 能够监视文本文件被是否被保存\n\n- 功能基于linux下的inotify系统调用\n\n- 不同编辑器的保存策略不同，可能会有不同的表现\n\n  1. vsocde采用直接保存，测试不会有问题\n  2. vim采用覆盖保存，测试不会有问题\n  3. gedit采用多次保存，测试一次保存会调用二次回调\n  4. nano会在启动时进行一次保存，其他没有问题\n  5. mv，cp命令可以正常检测\n  6. emacs支持\n\n  其他编辑器理论上也可以支持，建议使用测试程序先进行测试\n\n# 使用说明\n\n假设你使用一个git+cmake工程，添加filewatcher的步骤如下\n\n1. 在你想放置filewatcher的文件夹下执行\n\n   `git submodule add https://github.com/findNextStep/fileWatcher`\n\n2. 在你的`CMakeLists.txt`中添加include路径和相关链接库链接\n\n   ```cmake\n   include_directories(${FILE_WATCHER_INCLUDE})\n   link_libraries(file_watcher)\n   ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindnextstep%2Ffilewatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindnextstep%2Ffilewatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindnextstep%2Ffilewatcher/lists"}