MCPcopy Create free account
hub / github.com/FongMi/CatVodSpider / create

Method create

app/src/main/java/com/github/catvod/utils/Path.java:137–148  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

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}

Callers 3

writeMethod · 0.95
copyMethod · 0.95
actionMethod · 0.95

Calls 2

mkdirMethod · 0.95
execMethod · 0.95

Tested by

no test coverage detected