예제 #1
0
 private static void revokePermissions(final File f) {
   FileUtil.setWritable(f, false);
   FileUtil.setExecutable(f, false);
   FileUtil.setReadable(f, false);
 }
예제 #2
0
 private static void grantPermissions(final File f) {
   FileUtil.setReadable(f, true);
   FileUtil.setWritable(f, true);
   FileUtil.setExecutable(f, true);
 }