{"id":35361116,"url":"https://github.com/stort0/cfs","last_synced_at":"2026-07-16T00:02:03.262Z","repository":{"id":319911787,"uuid":"933715842","full_name":"stort0/cfs","owner":"stort0","description":"Single header cross-platform filesystem API in C89.","archived":false,"fork":false,"pushed_at":"2025-12-28T10:11:17.000Z","size":635,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T20:09:50.477Z","etag":null,"topics":["32-bit","64-bit","c","c89","c90","cross-platform","filesystem","filesystem-library","linux","single-header","single-header-library","windows"],"latest_commit_sha":null,"homepage":"","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/stort0.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-16T14:33:50.000Z","updated_at":"2025-12-28T10:11:21.000Z","dependencies_parsed_at":"2025-12-06T07:06:38.066Z","dependency_job_id":null,"html_url":"https://github.com/stort0/cfs","commit_stats":null,"previous_names":["storterald/cfs","stort0/cfs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stort0/cfs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stort0%2Fcfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stort0%2Fcfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stort0%2Fcfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stort0%2Fcfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stort0","download_url":"https://codeload.github.com/stort0/cfs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stort0%2Fcfs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35524897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"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":["32-bit","64-bit","c","c89","c90","cross-platform","filesystem","filesystem-library","linux","single-header","single-header-library","windows"],"created_at":"2026-01-02T00:19:34.748Z","updated_at":"2026-07-16T00:02:03.211Z","avatar_url":"https://github.com/stort0.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e ⚠️ Warning\u003cbr\u003e\n\u003e The library is currently being tested.\n\n# CFS: cross-platform filesystem API in C89\n\nA single header implementation of `std::filesystem`/`Boost.Filesystem` in `C89`.\n\n\u003e ⚠️ Warning\u003cbr\u003e\n\u003e The library will not compile in a C++ environment (yet).\u003cbr\u003e\n\u003e Define **CFS_IMPLEMENTATION** in a **C** file instead.\n\n### Usage:\n\n```c++\n// This should be done in a source file, not a header file.\n\n// For Linux:\n// #define _GNU_SOURCE \n//  Already defined by most compilers, required for some functions.\n//  This should be defined as a compiler definition, not using a #define.\n//  If defined in a .c file, it should be above all #includes.\n\n// For Windows:\n//  Be sure to use a toolchain that automatically defines _WIN32_WINNT\n//  to enable symlinks.\n\n#define CFS_IMPLEMENTATION\n#include \u003ccfs/cfs.h\u003e\n```\n\n### OS requirements\n\n| Windows           | Linux |\n|:------------------|:------|\n| Windows **95+**\\* | Any   |\n\n\\* Only compatibility with **Windows 2000+** are tested in a VM. Older Windows\nversions are checked by modifying the `_WIN32_WINNT` value.\n\nSome specific fixes are implemented for `FreeBSD` and `Darwin` but compatibility\nwon't be tested.\n\n## Differences with std::filesystem\n\n`std::filesystem` implementation across compilers is *extremely* inconsistent. This\nlibrary adopts the most **common** or **logical** way across various implementations,\nor a **custom** one.\n\n - On `Windows`, paths above `MAX_PATH` *(260 chars)* length are supported.\n - Empty paths `\"\"` are **not** transformed in `\".\"` and `NULL` paths are treated as \n   an error in `Debug` (**fs_cfs_error_invalid_argument**) or **undefined behavior**\n   in `Release` mode.\n - `fs_file_time_type` is based on the **UNIX** epoch on **all** OSs.\n - `fs_hard_link_count` always does **not** include the file itself as a link for\n   consistency across operating systems.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstort0%2Fcfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstort0%2Fcfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstort0%2Fcfs/lists"}