-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(citizen-scripting-lua): Add os.createdir function #3129
feat(citizen-scripting-lua): Add os.createdir function #3129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just small changes for consistency with the vfs.
Is there any additional feedback for this PR? |
I think you have to squash the commits before they merge this |
Yes @prikolium-cfx |
With `os.execute` being sandbox disabled, this offers an alternative for creating directories in Lua. updates for vfs consistency removing permissions check Removing the filesystem permission check as it fails when passed a full path instead of a relative path add findclose calls
ec9ac4d
to
e6d8f03
Compare
Changes squashed. |
Thank you. |
Goal of this PR
With
os.execute
being sandbox disabled, this offers an alternative for creating directories in Lua.How is this PR achieving the goal
LuaOSCreateDir
taps into and works with the VFS system directly to offer a more concise solution for creating directories instead of leavingos.execute
open for anything and everything.This PR applies to the following area(s)
Server, ScRT: Lua
Successfully tested on
Game builds: ..
Platforms: Windows
Checklist
Fixes issues