MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / deletefile

Method deletefile

src/main/java/core/packetproxy/common/Utils.java:223–229  ·  view source on GitHub ↗
(String filename)

Source from the content-addressed store, hash-verified

221 }
222
223 public static void deletefile(String filename) throws Exception {
224 File file = new File(filename);
225 if (file.exists()) {
226
227 file.delete();
228 }
229 }
230
231 public static void writefile(String filename, byte[] data) throws Exception {
232 FileOutputStream fos = new FileOutputStream(filename);

Callers

nothing calls this directly

Calls 2

existsMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected