{"id":19190327,"url":"https://github.com/seigtm/directoryfileslist","last_synced_at":"2025-04-20T07:34:23.777Z","repository":{"id":128813218,"uuid":"359947230","full_name":"seigtm/DirectoryFilesList","owner":"seigtm","description":"Implementation of the C++ function that returns a list of files in a certain directory by a given mask (file extension). It's my homework task on the subject \"Information security\".","archived":true,"fork":false,"pushed_at":"2021-04-22T16:47:47.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T03:46:53.789Z","etag":null,"topics":["cpp","cpp-examples","directory","file","file-list","files","files-list","filesystem","list-files","std-library"],"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/seigtm.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":"2021-04-20T20:48:56.000Z","updated_at":"2024-02-22T15:41:45.000Z","dependencies_parsed_at":"2023-08-25T15:35:31.900Z","dependency_job_id":null,"html_url":"https://github.com/seigtm/DirectoryFilesList","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seigtm%2FDirectoryFilesList","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seigtm%2FDirectoryFilesList/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seigtm%2FDirectoryFilesList/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seigtm%2FDirectoryFilesList/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seigtm","download_url":"https://codeload.github.com/seigtm/DirectoryFilesList/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249864403,"owners_count":21336738,"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":["cpp","cpp-examples","directory","file","file-list","files","files-list","filesystem","list-files","std-library"],"created_at":"2024-11-09T11:33:43.834Z","updated_at":"2025-04-20T07:34:23.772Z","avatar_url":"https://github.com/seigtm.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# List files in a directory C++ function.\nImplementation of the C++ function that returns a list of files in a certain directory by a given mask (file extension).  \n``` cpp\n// Returns a vector of file name strings in some directory with some extension.\nstd::vector\u003cstd::string\u003e getDirectoryFiles(const fs::path \u0026directory = fs::current_path(),\n                                           const std::vector\u003cstd::string\u003e extensions = {})\n```\nIt's my homework task on the subject \"Information security\".   \n## Usage examples:\n\u003e Returns the list of the names of all files in the current directory.\n``` cpp\nauto fileList = getDirectoryFiles();\n```\n\u003e Returns the list of the names of all files in the current directory with the \"*.exe\" extension.\n``` cpp\nauto fileList = getDirectoryFiles(fs::current_path(), {\".exe\"});\n```\n\u003e Returns the list of the names of all files in the current directory with the \".png\", \".bmp\" or \".jpg\" extension.\n``` cpp\nauto fileList = getDirectoryFiles(fs::current_path(), {\".png\", \".bmp\", \".jpg\"});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseigtm%2Fdirectoryfileslist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseigtm%2Fdirectoryfileslist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseigtm%2Fdirectoryfileslist/lists"}