Skip to content

Make fs/path its own external module #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

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
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