L
loial
What is the best way to run the unix chown and chgrp commands in Java?
I only need to run these commands on one file at at time.
I only need to run these commands on one file at at time.
What is the best way to run the unix chown and chgrp commands in Java?
I only need to run these commands on one file at at time.
What is the best way to run the unix chown and chgrp commands in Java?
I only need to run these commands on one file at at time.
Surely the 'Java' way (in 1.7 at least) is
java.nio.file.Files.setPosixFilePermissions
Ah yes, setPosixFilePermissions would be chmod.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.