Search This Blog

Java: set file permissions

File f = new File("/tmp/1.sh");
f.setExecutable(true);
f.setReadable(true);
f.setWritable(true);
f.createNewFile();

No comments:

Post a Comment