-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
filesystem bindings #1
Comments
read file |
read file is in the lua standard io library it's not crazy to have them separated, some languages have separate libraries for io (read/write file content) and filesystem (directories and metadata), rust being one |
append to start of file (prepend) |
Need something like Example usage:
|
I dont believe rust have anything builtin to change the directory, but using libc, you could call The current set of fs bindings have an unnatural feel and use due to lua bindings not having any direct access anything such as |
There is Actually it makes sense to completely replaces the |
Yea I saw that function not to long ago (I dont really look in std::env) so I can implement it in a few. Yea, lua does have that but the problem is that such calls isnt exactly done in a safe manner and rlua doesnt exactly provide any safety for many (if not all) of lua internal functions. |
@dariusc93 |
Alot of the information is in rlua description. Other parts can be done by reviewing rlua code and how it interact with the embedded lua code, though everything there is considered to be WIP so things will likely change (which may or may not be breaking on rust side). |
get current dir |
I have this already in a local branch. Let me rebase and ill push it |
is writeable |
#!/usr/bin/env torchbear
print(cwd) returns I think that's holding back jazzdotdev/jazz-libs#7 |
There is no |
cool. thanks |
improvements to filesystem bindings, from lighttouch's fs workarounds and gut's fs workarounds
The text was updated successfully, but these errors were encountered: