How do i find if a file is executable.
Say
/usr/bin/firefox
in shell we say if [ -x /usr/bin/firefox ];then
like that how do i find in java code.
File f = new File("/usr/bin/firefox");
if ( f.exists() ) {
{
if (
<need to know file is executable> ) {
}
}
thanks
Rayudu