# lunarmodules/luafilesystem

LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.

Repository: https://github.com/lunarmodules/luafilesystem
Canonical: https://ross.abutalabs.com/products/luafilesystem
Homepage: https://lunarmodules.github.io/luafilesystem/
Language: C
License: MIT
License Family: permissive
Last push: 2026-08-20T16:38:26+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 61, longevity 100
- inputs: {"age_days": 6190, "days_push": 13, "days_rel": 46, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1009, forks 302 (observed 2026-08-28T04:03:12.764253+00:00)

## What it is
LuaFileSystem is a C-based Lua library that complements the standard Lua distribution's file system functions. It provides a portable way to access directory structures and file attributes across Unix flavors and Windows.

## Use cases
- list directory contents in Lua
- get file attributes like size and modification time
- create and remove directories portably
- work with symbolic links in Lua
- get the current working directory
- lock files for concurrent access

## When to choose
- you need portable file system access in Lua across Unix and Windows
- you need file attributes, symlinks, or directory iteration beyond Lua's standard io library
- you want a mature, MIT-licensed library supporting Lua 5.1 through 5.5

## When to avoid
- you only need basic file reading/writing, which Lua's standard io library already covers
- you need async or high-performance file I/O
- you are not working in Lua

## Facets
- artifact type: library
- maturity: stable
- function: file-system
- domain: developer-tools, files, cross-platform
- platform: windows, bsd, lua
- tags: lua, luarocks, directory-structure, file-attributes, portable, linux, macos, android

## Member repositories
- lunarmodules/luafilesystem (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:12.764253+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:12:04.171193+00:00, confidence not recorded.
  - readme: https://github.com/lunarmodules/luafilesystem (fetched 2026-08-28T04:03:12.764253+00:00, sha 7c096239d0b2)
  - homepage: https://lunarmodules.github.io/luafilesystem/ (fetched 2026-08-29T13:12:01.322157+00:00, sha 054f6d4bfcac)
- Data as of 2026-08-30T08:39:29.467469+00:00.
