{"id":13542764,"url":"https://github.com/codeplea/fsghost","last_synced_at":"2025-04-30T23:33:35.242Z","repository":{"id":110397266,"uuid":"64700347","full_name":"codeplea/fsghost","owner":"codeplea","description":"a simple cross-platform command line tool to monitor a directory for file changes","archived":false,"fork":false,"pushed_at":"2017-04-03T18:14:28.000Z","size":27,"stargazers_count":35,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-03T09:33:23.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codeplea.com/fsghost","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeplea.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-08-01T20:45:43.000Z","updated_at":"2024-02-06T03:17:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e42e8b2-84cd-4cc3-812e-0b569dc77454","html_url":"https://github.com/codeplea/fsghost","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/codeplea%2Ffsghost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Ffsghost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Ffsghost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Ffsghost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeplea","download_url":"https://codeload.github.com/codeplea/fsghost/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224227283,"owners_count":17276773,"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-08-01T11:00:17.182Z","updated_at":"2024-11-12T06:23:04.897Z","avatar_url":"https://github.com/codeplea.png","language":"C","readme":"[![Build Status](https://travis-ci.org/codeplea/fsghost.svg?branch=master)](https://travis-ci.org/codeplea/fsghost)\n\n# FsGhost - Cross-Platform File Change Monitoring in C\n\n\u003cimg alt=\"FsGhost logo\" src=\"https://codeplea.com/public/content/fsghost_logo.png\" align=\"right\" /\u003e\n\nFsGhost is a *tiny* command-line tool to monitor and notify of file changes in a\ngiven directory. FsGhost works natively on both Windows and Linux and is\nself-contained in only 1 C file. Its only dependencies are the operating system\nheaders for your platform.\n\n## Features\n\n- **ANSI C with no external dependencies**.\n- Contained in a single source file.\n- Simple.\n- Released under the zlib license - free for nearly any use.\n\n\n## Example Usage\n\nCall `fsghost` with a single argument, the path of the directory you'd like to monitor.\n\n```\nmkdir test-dir\nfsghost test-dir\n```\n\nFsGhost will then monitor that directory. If any files are created, written, or\ndeleted, FsGhost will write that filename to the standard output.\n\n\n![Example Usage](./demo.gif)\n\n## Building\nYou can probably build by simply running `make`. If that doesn't work, try to compile\n`main.c`. It should be pretty easy.\n\n## FAQ\n### Does FsGhost do polling.\nNo. FsGhost uses the proper file-system APIs on each platform to get notified when changes take place. This means\nthat it uses very few system resources when running, and will not bog down your machine. It's made to be run in the background\nfor long periods of time.\n\nFor Windows, FsGhost uses the `ReadDirectoryChangesW` API. For Linux, it uses the `inotify` API.\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeplea%2Ffsghost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeplea%2Ffsghost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeplea%2Ffsghost/lists"}