Skip to content

Make fs/path its own external module#60

Merged
euclidianAce merged 8 commits intomainfrom
lexical-path
Aug 13, 2025
Merged

Make fs/path its own external module#60
euclidianAce merged 8 commits intomainfrom
lexical-path

Conversation

@euclidianAce
Copy link
Member

@euclidianAce euclidianAce commented Apr 1, 2025

I've been liking this module enough that I've been either copy-pasting it or reimplementing it random other things. So I've split it into its own module here (licensed CC0).

luarocks install lexical-path

So the cyan.fs.path module no longer exists and cyan.fs essentially becomes a wrapper around luafilesystem specialized for our needs. And while I'm breaking things, I've made the fs module use longer names. mkdir -> make_directory, cwd -> current_directory, etc.

This is a little library I made to do some path management and parsing
and is loosely based on the path module it's replacing.

While I'm here breaking things, I'm changing `fs` to use more verbose
names.
... and accept `lexical_path.Pattern`s in more places
@euclidianAce euclidianAce merged commit 2dfdc70 into main Aug 13, 2025
@euclidianAce euclidianAce deleted the lexical-path branch August 13, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant