Originally posted by Eric Fox:
This maybe a stupid question, but I am creating a program and I need to know the linux file permissions of a file object. Is there a method or set of methods that can be used to get the read, write, and execution permissions for the owner, group, and everyone else?
I am not aware of such a thing.You can figure out file permission with
ls command.You could try using
java's Runtime.getRuntime().exec(cmd) ;method to run the command. It probably did not help but ...