{"id":15968591,"url":"https://github.com/simongray/beholder-deletion-issue","last_synced_at":"2025-10-07T03:36:03.666Z","repository":{"id":78998192,"uuid":"565472855","full_name":"simongray/beholder-deletion-issue","owner":"simongray","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-13T14:35:49.000Z","size":24094,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-12T12:08:06.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/simongray.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":"2022-11-13T14:23:25.000Z","updated_at":"2022-11-13T14:23:56.000Z","dependencies_parsed_at":"2023-05-01T23:48:20.579Z","dependency_job_id":null,"html_url":"https://github.com/simongray/beholder-deletion-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simongray/beholder-deletion-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simongray%2Fbeholder-deletion-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simongray%2Fbeholder-deletion-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simongray%2Fbeholder-deletion-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simongray%2Fbeholder-deletion-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simongray","download_url":"https://codeload.github.com/simongray/beholder-deletion-issue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simongray%2Fbeholder-deletion-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278716883,"owners_count":26033535,"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-07T19:02:39.857Z","updated_at":"2025-10-07T03:36:03.639Z","avatar_url":"https://github.com/simongray.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Beholder/directory-watcher deletion issue\nThis Clojure code demonstrates an issue with deleting files in [beholder](https://github.com/nextjournal/beholder) and the library it is wrapping, [directory-watcher](https://github.com/gmethvin/directory-watcher).\n\nRun the [beholder-issue.jar](/beholder-issue.jar) file using\n\n```shell\njava -jar beholder-issue.jar\n```\n\n\u003e I ran this with Java 19 on an Apple Silicon Macbook Air using macOS 13. The program depends on directory-watcher 0.17.0.\n\nThis will create `testdir/` along with two files, `before.txt` and `after.txt`, created before and after the watcher process is instantiated, respectively. Both files are then deleted.\n\n* The state of the files created is printed after each significant change.\n* The signals of the watcher are also printed as they arrive.\n* I have inserted three 1 second pauses to make sure that the async nature of all this file-watching doesn't mess up the results.\n\nOn my machine the program outputs:\n\n```\nfiles:\n   testdir\n   testdir/before.txt\n(starting watcher process..)\nfiles:\n   testdir\n   testdir/before.txt\n   testdir/after.txt\nwatcher: create /Users/simongray/testdir/after.txt\nfiles:\n   testdir\nwatcher: delete /Users/simongray/testdir/after.txt\n```\n\n... i.e. it only registers the deletion of the `after.txt` file, not the other file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimongray%2Fbeholder-deletion-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimongray%2Fbeholder-deletion-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimongray%2Fbeholder-deletion-issue/lists"}