{"id":17002097,"url":"https://github.com/sagiegurari/c_fsio","last_synced_at":"2025-03-22T09:17:46.145Z","repository":{"id":139264114,"uuid":"298307225","full_name":"sagiegurari/c_fsio","owner":"sagiegurari","description":"File System utility functions.","archived":false,"fork":false,"pushed_at":"2023-09-27T07:11:11.000Z","size":69,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-27T09:11:28.733Z","etag":null,"topics":["c","c-lib","c-library","filesystem","filesystem-library"],"latest_commit_sha":null,"homepage":"","language":"C","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/sagiegurari.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","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}},"created_at":"2020-09-24T14:40:36.000Z","updated_at":"2021-12-07T01:32:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f8756b7-06ad-48d9-9ca2-19ff1354fe01","html_url":"https://github.com/sagiegurari/c_fsio","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagiegurari%2Fc_fsio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagiegurari%2Fc_fsio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagiegurari%2Fc_fsio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagiegurari%2Fc_fsio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sagiegurari","download_url":"https://codeload.github.com/sagiegurari/c_fsio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931630,"owners_count":20534012,"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":["c","c-lib","c-library","filesystem","filesystem-library"],"created_at":"2024-10-14T04:27:02.955Z","updated_at":"2025-03-22T09:17:46.122Z","avatar_url":"https://github.com/sagiegurari.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fsio\n\n[![CI](https://github.com/sagiegurari/c_fsio/workflows/CI/badge.svg?branch=master)](https://github.com/sagiegurari/c_fsio/actions)\n[![Release](https://img.shields.io/github/v/release/sagiegurari/c_fsio)](https://github.com/sagiegurari/c_fsio/releases)\n[![license](https://img.shields.io/github/license/sagiegurari/c_fsio)](https://github.com/sagiegurari/c_fsio/blob/master/LICENSE)\n\n\u003e File System functions and utilities.\n\n* [Overview](#overview)\n* [Usage](#usage)\n* [Contributing](.github/CONTRIBUTING.md)\n* [Release History](CHANGELOG.md)\n* [License](#license)\n\n\u003ca name=\"overview\"\u003e\u003c/a\u003e\n## Overview\nThis library provides a set of utility functions to work with the file system.\u003cbr\u003e\nThis includes writing/append text files with automatic directory creation, creating full directory path and more.\n\n\u003ca name=\"usage\"\u003e\u003c/a\u003e\n## Usage\n\n\u003c!-- example source start --\u003e\n```c\n#include \"fsio.h\"\n#include \u003cstdbool.h\u003e\n#include \u003cstdio.h\u003e\n\n\nint main()\n{\n  // simple examples of writing/appending/reading text files\n  char *file = \"./somedir/myfile.txt\";\n  bool done  = fsio_write_text_file(file, \"some text\\n\");\n\n  printf(\"Text file written: %d\\n\", done);\n  done = fsio_append_text_file(file, \"more text\\n\");\n  printf(\"Text file appended: %d\\n\", done);\n  char *text = fsio_read_text_file(file);\n  printf(\"Read text:\\n%s\\n\", text);\n\n  // creating a full directory path\n  done = fsio_mkdirs(\"./somedir/dir1/dir2/dir3\", FSIO_MODE_ALL);\n  printf(\"Created directories: %d\\n\", done);\n\n  // chmod to all permissions recursively\n  done = fsio_chmod_recursive(\"./somedir/\", FSIO_MODE_ALL);\n  printf(\"Chmod done: %d\\n\", done);\n\n  // recursive delete or files and directories\n  done = fsio_remove(\"./somedir\");\n  printf(\"Deleted somedir and all content.\\n\");\n}\n```\n\u003c!-- example source end --\u003e\n\n## Contributing\nSee [contributing guide](.github/CONTRIBUTING.md)\n\n\u003ca name=\"history\"\u003e\u003c/a\u003e\n## Release History\n\nSee [Changelog](CHANGELOG.md)\n\n\u003ca name=\"license\"\u003e\u003c/a\u003e\n## License\nDeveloped by Sagie Gur-Ari and licensed under the Apache 2 open source license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagiegurari%2Fc_fsio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsagiegurari%2Fc_fsio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagiegurari%2Fc_fsio/lists"}