Skip to content
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

io.chmod #471

Open
Sainan opened this issue Nov 22, 2023 · 0 comments
Open

io.chmod #471

Sainan opened this issue Nov 22, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Sainan
Copy link
Collaborator

Sainan commented Nov 22, 2023

This thing is a mess. I think it should only be a setter and it should only allow a string to specify the mode, ex.:

io.chmod("file", "644") -- owner: read+write; group & others: read.
io.chmod("file", "rw-r--r--") -- same meaning as above

io.chmod("prog", "755") -- owner: read+write+execute; group & others: read+execute.
io.chmod("prog", "rwxr-xr-x") -- same meaning as above

DO NOT let yourself be tempted to treat "644" and "755" as numbers; they are OCTAL!!!

Will probably just be a no-op on Windows.

@Sainan Sainan added the enhancement New feature or request label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant