You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need something like fs.chdir to change current working directory with Lua.
Example usage:
local err = fs.chdir("/this/path/exists")
assert(err == nil, "Failed to chdir to existing directory")
local err = fs.chdir("/no/such/path")
assert(err != nil, "Chdir to nonexistent directory succeeded")
err should be string describing the failed syscall.
The text was updated successfully, but these errors were encountered:
Need something like
fs.chdir
to change current working directory with Lua.Example usage:
err
should be string describing the failed syscall.The text was updated successfully, but these errors were encountered: