{"id":22971480,"url":"https://github.com/vorgestern/luafpp","last_synced_at":"2026-04-28T11:05:26.281Z","repository":{"id":264099237,"uuid":"892352027","full_name":"vorgestern/LuaFPP","owner":"vorgestern","description":"Lua-Binding for C++ std::filesystem","archived":false,"fork":false,"pushed_at":"2025-12-21T19:08:24.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-22T05:59:33.497Z","etag":null,"topics":["binding","cpp","filesystem","lua"],"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/vorgestern.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-22T00:26:20.000Z","updated_at":"2025-12-21T19:08:28.000Z","dependencies_parsed_at":"2025-01-29T00:26:40.323Z","dependency_job_id":"ee8c45dc-cbcf-436c-bf2e-855f748a9f0a","html_url":"https://github.com/vorgestern/LuaFPP","commit_stats":null,"previous_names":["vorgestern/luafpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vorgestern/LuaFPP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorgestern%2FLuaFPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorgestern%2FLuaFPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorgestern%2FLuaFPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorgestern%2FLuaFPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vorgestern","download_url":"https://codeload.github.com/vorgestern/LuaFPP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorgestern%2FLuaFPP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"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":["binding","cpp","filesystem","lua"],"created_at":"2024-12-14T22:17:49.805Z","updated_at":"2026-04-28T11:05:26.274Z","avatar_url":"https://github.com/vorgestern.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Purpose\nExpose the functions and types of C++ std::filesystem to Lua scripts.\u003cbr/\u003e\nProvide source with zero config and zero #ifdef.\n\n# Examples\n\n    fpp=require \"luafpp\"\n    print(\"Use luafpp version\", fpp.version)\n    print(\"Working directory\", fpp.pwd())\n\n    local here=fpp.pwd()\n\n    fpp.cd \"..\"\n    print(\"Parent directory\", fpp.pwd())\n    fpp.cd(here)\n\n    local content=fpp.walkdir \".\"\n    for j,e in ipairs(content) do print(j, e.type, e.catpath) end\n\n# Requirements\n+ C++ 20\n+ Lua 5.4\n\n# How to build\n## Linux\n\n    git submodule init\n    git submodule update --init --recursive\n    make\n\ncreates luafpp.so.\nCopy to where Lua will find it with 'require luafpp'\n\n# How to use: First ..\n    fpp=require \"luafpp\"\n\n## Directories\nThese do what you would expect:\n\n\u003cpre\u003e\n    \u003cb\u003efpp.pwd\u003c/b\u003e()                                  returns current directory\n\n    local ok,err=\u003cb\u003efpp.cd\u003c/b\u003e \".local/\"              changes current directory\n    if not ok then error(err) end\n\n    local ok,err=\u003cb\u003efpp.mkdir\u003c/b\u003e \"demo/more/empty\"   creates a directory (or hierarchy)\n\n    local ok,err=\u003cb\u003efpp.rmdir\u003c/b\u003e \"demo/more/empty\"   deletes empty directory (i.e. 'empty')\n\n    local ok=\u003cb\u003efpp.rmrf\u003c/b\u003e \"demo\"                   equivalent of `rm -rf`\n                                               true if file/folder existed,\n                                               false (not nil) if not\n\n    local dirs,err=\u003cb\u003efpp.subdirs\u003c/b\u003e \".local\"        returns a list of subdirectories\n    if not dirs then print(err)\n    else for _,p in ipairs(dirs) do ...\n    end\n\n    assert(\u003cb\u003efpp.exists\u003c/b\u003e \"hier\")                  Check whether directory exists (true/nil)\n\u003c/pre\u003e\n\n## Files\nThese do what you would expect:\n\n\u003cpre\u003e\n    local ok,err=\u003cb\u003efpp.touch\u003c/b\u003e \".local/demo/main.cpp\"           Touch/create file\n\n    local s,err=\u003cb\u003efpp.filesize\u003c/b\u003e \".local/demo/main.cpp\"         Query file size in bytes\n\n    local p,err=\u003cb\u003efpp.permissions\u003c/b\u003e \".local/demo/main.cpp\"      Query file permissions ()\n\n    local l,err=\u003cb\u003efpp.numlink\u003c/b\u003e \".local/demo/main.cpp\"          Query number of links ()\n\n    assert(\u003cb\u003efpp.exists\u003c/b\u003e \".local/demo/main.cpp\")               Check whether file exists\n                                                            (true/nil)\n\u003c/pre\u003e\n\n## File-/Dir-Types\n\n\u003cpre\u003e\n    local t,err=\u003cb\u003efpp.type\u003c/b\u003e \".local/demo/main.cpp\"     Query file type as a single letter.\n                                                    Uses single-letter-codes documented\n                                                    in find (1) for the -type criterion:\n                                                    \u003cb\u003eb\u003c/b\u003e block (buffered) special\n                                                    \u003cb\u003ec\u003c/b\u003e character (unbuffered) special\n                                                    \u003cb\u003ed\u003c/b\u003e directory\n                                                    \u003cb\u003ep\u003c/b\u003e named pipe (FIFO)\n                                                    \u003cb\u003ef\u003c/b\u003e regular file\n                                                    \u003cb\u003el\u003c/b\u003e symbolic link\n                                                    \u003cb\u003es\u003c/b\u003e socket\n\u003c/pre\u003e\n\n## Paths\nThese are more difficult to describe than to implement:\n\n\u003cpre\u003e\n    \u003cb\u003efpp.absolute\u003c/b\u003e\n    \u003cb\u003efpp.relative\u003c/b\u003e\n    \u003cb\u003efpp.canonical\u003c/b\u003e\n    \u003cb\u003efpp.weakly_canonical\u003c/b\u003e\n\u003c/pre\u003e\n\n## Walking directories\n\n\u003cpre\u003e\n    \u003cb\u003efpp.walkdir\u003c/b\u003e(\u0026lt;dir\u0026gt;, \u0026lt;opts\u0026gt;)  returns a table with files and folders in \u003cdir\u003e\n                                opts is a string with letters in random order:\n                                    r  recurse\n                                    .  do not skip files and folders starting with '.'\n                                    N|T|H (one of these) output format\n                                        N a string per item (file or folder)\n                                        T a table per item {name, type, catpath}\n                                        H a table per item {name, type, catpath, content={..}}\n                                opts defaults to \"T\"\n                                In tables:\n                                type is the return value of \u003cb\u003efpp.type\u003c/b\u003e on the object.\n                                catpath is a string representation of path starting with \u0026lt;dir\u0026gt;.\n                                content is the result of recursing into folders.\n\u003c/pre\u003e\n\n# To do\n\n    Introduce callbacks to filter walking recursion.\n    Introduce postprocessing utilities for output from walking directories.\n\n## Done\n\n    Come up with a better representation of file type.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorgestern%2Fluafpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvorgestern%2Fluafpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorgestern%2Fluafpp/lists"}