https://github.com/spacewander/luafilesystem
Reimplement luafilesystem via LuaJIT FFI
https://github.com/spacewander/luafilesystem
Last synced: 9 months ago
JSON representation
Reimplement luafilesystem via LuaJIT FFI
- Host: GitHub
- URL: https://github.com/spacewander/luafilesystem
- Owner: spacewander
- License: mit
- Created: 2016-12-18T14:08:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T03:06:09.000Z (over 2 years ago)
- Last Synced: 2025-07-06T16:42:00.926Z (about 1 year ago)
- Language: Lua
- Homepage:
- Size: 37.1 KB
- Stars: 64
- Watchers: 7
- Forks: 26
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# luafilesystem
[](https://travis-ci.org/spacewander/luafilesystem)
Reimplement luafilesystem via LuaJIT FFI.
This project doesn't support Windows. If you need the Windows support, use
https://github.com/sonoro1234/luafilesystem instead.
## Docs
It should be compatible with vanilla luafilesystem:
http://keplerproject.github.io/luafilesystem/manual.html#reference
What you only need is replacing `require('lfs')` to `require('lfs_ffi')`.`
## Installation
`[sudo] opm get spacewander/luafilesystem`
Run `resty -e "lfs = require('lfs_ffi') print(lfs.attributes('.', 'mode'))"` to validate the installation.