We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think we can add return nil or something like that here :
return nil
noggit3/src/noggit/scripting/script_filesystem.cpp
Line 35 in 74309b7
And in script we can now use read_file like that :
local myFile = read_file(path) if ( myFile ) then ... end
The text was updated successfully, but these errors were encountered:
if (!fs::exists(path)) { //throw script_exception("read_file","no such file:" + std::string (path)); return false; }
Sorry, something went wrong.
you have this: https://github.com/wowdev/noggit3/blob/default/scripts/docs/api/modules.md#path_exists
but could probably make two differentiating files and folders as well.
i see this too late, lol
No branches or pull requests
I think we can add
return nil
or something like that here :noggit3/src/noggit/scripting/script_filesystem.cpp
Line 35 in 74309b7
And in script we can now use read_file like that :
The text was updated successfully, but these errors were encountered: