(File file)
| 135 | } |
| 136 | |
| 137 | public static File create(File file) { |
| 138 | try { |
| 139 | if (file.getParentFile() != null) mkdir(file.getParentFile()); |
| 140 | if (!file.canWrite()) file.setWritable(true); |
| 141 | if (!file.exists()) file.createNewFile(); |
| 142 | Shell.exec("chmod 777 " + file); |
| 143 | return file; |
| 144 | } catch (IOException e) { |
| 145 | e.printStackTrace(); |
| 146 | return file; |
| 147 | } |
| 148 | } |
| 149 | } |