{"id":19966638,"url":"https://github.com/engineersmith/nativefs","last_synced_at":"2025-06-13T11:07:32.529Z","repository":{"id":43473462,"uuid":"449859190","full_name":"EngineerSmith/nativefs","owner":"EngineerSmith","description":"nativeFS for love2d (clone rehost as it was deleted)","archived":false,"fork":false,"pushed_at":"2024-05-02T19:30:07.000Z","size":107,"stargazers_count":47,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T11:05:36.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","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/EngineerSmith.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-01-19T21:21:25.000Z","updated_at":"2025-05-06T05:52:42.000Z","dependencies_parsed_at":"2024-11-02T11:31:32.486Z","dependency_job_id":null,"html_url":"https://github.com/EngineerSmith/nativefs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EngineerSmith/nativefs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngineerSmith%2Fnativefs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngineerSmith%2Fnativefs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngineerSmith%2Fnativefs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngineerSmith%2Fnativefs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EngineerSmith","download_url":"https://codeload.github.com/EngineerSmith/nativefs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EngineerSmith%2Fnativefs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259634349,"owners_count":22887697,"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":[],"created_at":"2024-11-13T02:37:24.543Z","updated_at":"2025-06-13T11:07:32.498Z","avatar_url":"https://github.com/EngineerSmith.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a re-host as previously it was taken down by the original developer. Pull requests for fixes are welcome!\n\n# Native filesystem for LÖVE\n\nnativefs replicates a subset of the [love.filesystem](https://love2d.org/wiki/love.filesystem) API, but without LÖVE's path restrictions. \n\n## Available functions\n\n### nativefs\n\nLinks in this list point to their `love.filesystem` counterparts. All functions are designed to behave the same way as `love.filesystem`, but without the path restrictions that LÖVE imposes; i.e., they allow full access to the filesystem.\n\n* [nativefs.newFile](https://love2d.org/wiki/love.filesystem.newFile)\n* [nativefs.newFileData](https://love2d.org/wiki/love.filesystem.newFileData)\n* [nativefs.mount](https://love2d.org/wiki/love.filesystem.mount)\n* [nativefs.unmount](https://love2d.org/wiki/love.filesystem.unmount)\n* [nativefs.read](https://love2d.org/wiki/love.filesystem.read)\n* [nativefs.write](https://love2d.org/wiki/love.filesystem.write)\n* [nativefs.append](https://love2d.org/wiki/love.filesystem.append)\n* [nativefs.lines](https://love2d.org/wiki/love.filesystem.lines)\n* [nativefs.load](https://love2d.org/wiki/love.filesystem.load)\n* [nativefs.getWorkingDirectory](https://love2d.org/wiki/love.filesystem.getWorkingDirectory)\n* [nativefs.getDirectoryItems](https://love2d.org/wiki/love.filesystem.getDirectoryItems)\n* [nativefs.getInfo](https://love2d.org/wiki/love.filesystem.getInfo)\n* [nativefs.createDirectory](https://love2d.org/wiki/love.filesystem.createDirectory)\n* [nativefs.remove](https://love2d.org/wiki/love.filesystem.remove)\n* nativefs.getDirectoryItemsInfo\n* nativefs.getDriveList\n* nativefs.setWorkingDirectory\n\n#### Additional `nativefs` functions\n\nFunctions that are not available in `love.filesystem`:\n\n* `nativefs.getDirectoryItemsInfo(path)`  \nReturns a list of items in a directory that contains not only the names, but also the information returned by `getInfo` for each item. The return value is a list of files and directories, in which each entry is a table as returned by [getInfo](https://love2d.org/wiki/love.filesystem.getInfo), with an additional `name` field for each entry. Using this function is faster than calling `getInfo` separately for each item.\n\n* `nativefs.getDriveList()`  \nReturns a table with all populated drive letters on Windows (`{ 'C:/', 'D:/', ...}`). On systems that don't use drive letters, a table with the single entry `/` is returned.\n\n* `nativefs.setWorkingDirectory(directory)`  \nChanges the working directory.\n\n### File\n\n`nativefs.newFile` returns a `File` object that provides these functions:\n\n* [File:open](https://love2d.org/wiki/\\(File\\):open)\n* [File:close](https://love2d.org/wiki/\\(File\\):close)\n* [File:read](https://love2d.org/wiki/\\(File\\):read)\n* [File:write](https://love2d.org/wiki/\\(File\\):write)\n* [File:lines](https://love2d.org/wiki/\\(File\\):lines)\n* [File:isOpen](https://love2d.org/wiki/\\(File\\):isOpen)\n* [File:isEOF](https://love2d.org/wiki/\\(File\\):isEOF)\n* [File:getFilename](https://love2d.org/wiki/\\(File\\):getFilename)\n* [File:getMode](https://love2d.org/wiki/\\(File\\):getMode)\n* [File:getBuffer](https://love2d.org/wiki/\\(File\\):getBuffer)\n* [File:setBuffer](https://love2d.org/wiki/\\(File\\):setBuffer)\n* [File:getSize](https://love2d.org/wiki/\\(File\\):getSize)\n* [File:seek](https://love2d.org/wiki/\\(File\\):seek)\n* [File:tell](https://love2d.org/wiki/\\(File\\):tell)\n* [File:flush](https://love2d.org/wiki/\\(File\\):flush)\n* [File:type](https://love2d.org/wiki/Object:type)\n* [File:typeOf](https://love2d.org/wiki/Object:typeOf)\n* [File:release](https://love2d.org/wiki/Object:release)\n\nFunction names in this list are links to their LÖVE `File` counterparts. `File` is designed to work the same way as LÖVE's `File` objects.\n\n## Example\n\n```lua\nlocal nativefs = require(\"nativefs\")\n\n-- Prints all information on files in C:\\Windows\nlocal files = nativefs.getDirectoryItemsInfo(\"C:/Windows\")\nfor i = 1, #files do\n  if files[i].type == \"file\" then\n    local info = nativefs.getInfo(\"C:/Windows/\" .. files[i].name)\n    print(i .. \": \" .. files[i] .. \" : Type:\" .. info.type .. \", Size:\" .. tostring(info.size) .. \", last modified:\" .. tostring(info.modtime))\n  end\nend\n```\n## License\nCopyright 2020 megagrump@pm.me\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineersmith%2Fnativefs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengineersmith%2Fnativefs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineersmith%2Fnativefs/lists"}