Process Builder waitFor() issue and Open file limitations

前端 未结 4 1385
醉梦人生
醉梦人生 2020-12-03 18:11

I have inherited some code:

Process p = new ProcessBuilder(\"/bin/chmod\", \"777\", path).start();
p.waitFor();

Basically, there is for som

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 19:08

    If you're using JAVA 6, you could also try the new setters (for read,write,execute) on the File object. Might be slower, but it should work.

提交回复
热议问题