Is there a good way to determine if a file is executable in Java

后端 未结 3 2096
有刺的猬
有刺的猬 2020-12-16 19:27

I\'m aware you can call

Runtime.getRuntime().exec(file);

and get an exception if it is not executable, however this is unsafe since runnin

3条回答
提交回复
热议问题