Filesystem API from C++ std::filesystem.

$ luarocks install stdfs

NOTICE: rock compilation failure with Lua 5.1 and 5.2 was fixed in version 0.8-1.

This is a filesytem API library. It is a thin wrapper for C++ std::filesystem.
With the following design goals:
- UTF-8 paths support
- ease of writing this library
- wide range of API tools
- no reinventing the wheel

stdfs offers:
- path userdata type with path-style and string-style concatenations, comparisons and seamless conversion to/from string. Querying extension, stem, filename, parent, replacing extension and filename.
- iterating over directory structure
- copying, renaming, removing filesystem objects
- creating directories
- querying existence, size, attributes, write time
- querying free space, working directory, temporary directory
- working with symlinks: creating, checking target, removing, acquiring attributes

For documentation check https://happanda.gitlab.io/stdfs-webpage/docs.html

Current tests are running in Docker container on Gitlab using Lua versions 5.1, 5.2, 5.3, 5.4 across Debian, Ubuntu and Voidlinux. The development is happening on Manjaro, so that system should be fine too (although I only use Lua 5.4).
If you come across issues or bugs, please don't hesitate to send me an email or file up an issue at gitlab. Thank you.

Versions

scm-0dev3 days ago(revision: 2)0 downloads
0.8-23 days ago3 downloads
0.8-1291 days ago27 downloads
0.7-1304 days ago37 downloads
0.6-1316 days ago11 downloads
0.5-1322 days ago6 downloads
0.4-3324 days ago19 downloads
0.4-2326 days ago6 downloads
0.4-1326 days ago6 downloads
0.3-1332 days ago6 downloads
0.2-21 year ago73 downloads
0.2-12 years ago106 downloads
0.1-22 years ago(revision: 3)58 downloads
0.1-12 years ago15 downloads

Dependencies

lua >= 5.1

Labels

Manifests