{"id":19293355,"url":"https://github.com/oblerion/dirent2","last_synced_at":"2026-06-20T05:31:14.300Z","repository":{"id":159871694,"uuid":"463866527","full_name":"oblerion/dirent2","owner":"oblerion","description":"C++ Struct to get file and folder information in directory.","archived":false,"fork":false,"pushed_at":"2022-02-26T15:08:55.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T00:22:19.339Z","etag":null,"topics":["cpp","dirent"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oblerion.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}},"created_at":"2022-02-26T13:52:44.000Z","updated_at":"2022-02-26T15:41:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"0cf18c42-f02c-490a-8bfc-30031f7f1591","html_url":"https://github.com/oblerion/dirent2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/oblerion/dirent2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblerion%2Fdirent2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblerion%2Fdirent2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblerion%2Fdirent2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblerion%2Fdirent2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oblerion","download_url":"https://codeload.github.com/oblerion/dirent2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oblerion%2Fdirent2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34558893,"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-06-20T02:00:06.407Z","response_time":98,"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":["cpp","dirent"],"created_at":"2024-11-09T22:34:43.447Z","updated_at":"2026-06-20T05:31:14.282Z","avatar_url":"https://github.com/oblerion.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dirent2\nStruct to more easy to use [dirent.h](https://github.com/tronkko/dirent).\n\u003cbr\u003eSame to dirent get file and folder information.\n\u003cbr\u003eNeed dirent.h for work.\n## some exemple\n```cpp\n#include \"dirent2.hpp\"\n// simple\nstruct dirent2 d2;\nd2.scan(\".\"); // scan '.' directory\nd2.print(); // print all name in console\n\n// advenced loop\nfor(int i=0;i\u003cd2.nd;i++)\n{\n\tif(d2.Type_at(i)=='f')\n  \t{\n   \t\tprintf(\"\\n%s is file\",d2.Name_at(i).c_str());\n  \t}\n  \tif(d2.Type_at(i)=='d')\n  \t{\n    \t\tprintf(\"\\n%s is directory\",d2.Name_at(i).c_str());\n  \t}\n}\n\n```\n## fast describle\n```cpp\nstruct dirent2\n{\n\tint nb=0;// number of all name found\n\tvoid scan(std::string pstr);// scan dir path is pstr\n\tvoid print();// print all in console\n\tstd::string Name_at(int id);// get string name at id\n\tchar Type_at(int id);// get char type at id --\u003e 'f' file or 'd' dir\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foblerion%2Fdirent2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foblerion%2Fdirent2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foblerion%2Fdirent2/lists"}