{"id":19355577,"url":"https://github.com/synrc/fs","last_synced_at":"2025-05-14T15:06:31.686Z","repository":{"id":16890036,"uuid":"19650722","full_name":"synrc/fs","owner":"synrc","description":"📁 FS: Windows, Linux, Mac Driver","archived":false,"fork":false,"pushed_at":"2025-04-01T06:40:51.000Z","size":142,"stargazers_count":239,"open_issues_count":5,"forks_count":70,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-29T00:21:19.922Z","etag":null,"topics":["linux","mac","windows"],"latest_commit_sha":null,"homepage":"https://fs.n2o.dev","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synrc.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-05-10T19:59:48.000Z","updated_at":"2025-04-24T19:26:21.000Z","dependencies_parsed_at":"2022-08-27T00:21:20.768Z","dependency_job_id":"d577f34a-59c4-4bbe-a626-bdfc5098a301","html_url":"https://github.com/synrc/fs","commit_stats":{"total_commits":127,"total_committers":21,"mean_commits":"6.0476190476190474","dds":0.2913385826771654,"last_synced_commit":"23a5b46b033437a3d69504811ae6c72f7704a78a"},"previous_names":["synrc/fs"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synrc%2Ffs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synrc%2Ffs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synrc%2Ffs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synrc%2Ffs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synrc","download_url":"https://codeload.github.com/synrc/fs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251603887,"owners_count":21616167,"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":["linux","mac","windows"],"created_at":"2024-11-10T06:01:52.065Z","updated_at":"2025-05-14T15:06:31.666Z","avatar_url":"https://github.com/synrc.png","language":"Erlang","readme":"FS: Native Listener (Mac Windows Linux)\n=======================================\n\n[![Actions Status](https://github.com/synrc/fs/workflows/mix/badge.svg)](https://github.com/synrc/fs/actions)\n[![Hex pm](http://img.shields.io/hexpm/v/fs.svg?style=flat)](https://hex.pm/packages/fs)\n\nBackends\n--------\n\n* Mac [fsevent](https://github.com/thibaudgg/rb-fsevent)\n* Linux [inotify](https://github.com/rvoicilas/inotify-tools/wiki)\n* Windows [inotify-win](https://github.com/thekid/inotify-win)\n\nNOTE: On Linux you need to install inotify-tools.\n\n### Subscribe to Notifications\n\n```erlang\n\u003e fs:start_link(fs_watcher, \"/Users/5HT/synrc/fs\"). % need to start the fs watcher\n\u003e fs:subscribe(fs_watcher). % the pid will receive events as messages\n\u003e flush().\nShell got {\u003c0.47.0\u003e,\n           {fs,file_event},\n           {\"/Users/5HT/synrc/fs/src/README.md\",[closed,modified]}}\n```\n\n### List Events from Backend\n\n```erlang\n\u003e fs:known_events(fs_watcher). % returns events known by your backend\n[mustscansubdirs,userdropped,kerneldropped,eventidswrapped,\n historydone,rootchanged,mount,unmount,created,removed,\n inodemetamod,renamed,modified,finderinfomod,changeowner,\n xattrmod,isfile,isdir,issymlink,ownevent]\n```\n\n### Sample Subscriber\n\n```erlang\n\u003e fs:start_looper(). % starts a sample process that logs events\n=INFO REPORT==== 28-Aug-2013::19:36:26 ===\nfile_event: \"/tank/proger/erlfsmon/src/4913\" [closed,modified]\n```\n\nCredits\n-------\n\n* Vladimir Kirillov\n* Maxim Sokhatsky\n* Dominic Letz \n\nOM A HUM\n","funding_links":[],"categories":["Files and Directories","Erlang","C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynrc%2Ffs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynrc%2Ffs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynrc%2Ffs/lists"}