MCPcopy Index your code
hub / github.com/razerdp/BasePopup / createFile

Method createFile

app/src/main/java/razerdp/demo/utils/FileUtil.java:612–622  ·  view source on GitHub ↗
(final File file, boolean deleteOld)

Source from the content-addressed store, hash-verified

610 }
611
612 public static boolean createFile(final File file, boolean deleteOld) {
613 if (file == null) return false;
614 if (deleteOld && file.exists() && !file.delete()) return false;
615 if (!createOrExistsDir(file.getParentFile())) return false;
616 try {
617 return file.createNewFile();
618 } catch (IOException e) {
619 e.printStackTrace();
620 return false;
621 }
622 }
623
624 public static File createFile(File zipdir, File zipfile) {
625 if (!zipdir.exists()) {

Callers 1

saveBitmapMethod · 0.95

Calls 5

createOrExistsDirMethod · 0.95
dMethod · 0.95
deleteMethod · 0.80
eMethod · 0.80
getMessageMethod · 0.80

Tested by

no test coverage detected