{"id":15968087,"url":"https://github.com/james7132/ttl-file-rs","last_synced_at":"2026-01-15T23:06:58.109Z","repository":{"id":67320072,"uuid":"556533046","full_name":"james7132/ttl-file-rs","owner":"james7132","description":"Zero-config management of expiring files.","archived":false,"fork":false,"pushed_at":"2025-12-22T01:17:32.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-23T12:51:49.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/james7132.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"james7132"}},"created_at":"2022-10-24T02:58:42.000Z","updated_at":"2025-12-22T01:17:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"68dfd183-ea22-47f1-988f-6bae95028d6e","html_url":"https://github.com/james7132/ttl-file-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/james7132/ttl-file-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james7132%2Fttl-file-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james7132%2Fttl-file-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james7132%2Fttl-file-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james7132%2Fttl-file-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/james7132","download_url":"https://codeload.github.com/james7132/ttl-file-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james7132%2Fttl-file-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28473974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T22:27:41.514Z","status":"ssl_error","status_checked_at":"2026-01-15T21:54:47.910Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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:00:30.711Z","updated_at":"2026-01-15T23:06:58.075Z","avatar_url":"https://github.com/james7132.png","language":"Rust","funding_links":["https://github.com/sponsors/james7132"],"categories":[],"sub_categories":[],"readme":"# ttl-file-rs\n\nThis is a simple daemon that monitors directories and deletes files\nthat have exceeded a configured\n[time-to-live](https://en.wikipedia.org/wiki/Time_to_live).\n\n## Usage\n```bash\nttl-file \u003cROOT DIRECTORIES\u003e\n```\n\nThe daemon will watch all provided directories recursively and delete files based\non a per-directory TTL. If no directories are provided, the current working\ndirectory will be used instead.\n\nTTL is configured by including directories in the filepath named with the pattern\n`ttl=\u003cDURATION\u003e`. The TTL is based on the creation timestamp, not the last\nmodified timestamp. For example, `/home/user/directory/ttl=30d/documents/test.pdf`\nwill be deleted 30 days after the file is first created. TTLs are enforced down\nto the precision of one second.\n\nIf multiple `ttl=X` directories are found on the filepath, the lowest-level\ndirectory's configuration will be used For example,\n`/home/user/directory/ttl=30d/documents/ttl=30m/test.pdf` will use a 30 minute\nTTL instead of the upper level 30 day config.\n\nOnly files will be deleted. Directories will not be touched.\n\nFilesystems with hard-linked loops will likely cause the daemon to infinitely\nloop. This should generally not be possible with most modern Unix-based systems.\n\n## Docker Container\nYou can use the daemon as a Docker container. An example docker-compose.yml file:\n\n```yaml\nversion: \"3.9\"\nservices:\n  ttl:\n    image: ghcr.io/james7132/ttl-file-rs:latest\n    volume:\n      # By default everything under /ttl is watched by the daemon\n      - /your/host/directory/here/1:/ttl/ttl=30d/container/directory\n      - /your/host/directory/here/2:/ttl/ttl=10m/container/directory\n```\n\n## License\nMIT or Apache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames7132%2Fttl-file-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames7132%2Fttl-file-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames7132%2Fttl-file-rs/lists"}