MCPcopy Create free account
hub / github.com/annmuor/jnode / createInboundFile

Method createInboundFile

jnode-core/src/jnode/ftn/FtnTools.java:1078–1089  ·  view source on GitHub ↗
(boolean secure)

Source from the content-addressed store, hash-verified

1076 }
1077
1078 private static File createInboundFile(boolean secure) {
1079 String template = ((secure) ? "s" : "u") + "inb%d.pkt";
1080 int i = 0;
1081 File f = new File(getInbound() + File.separator
1082 + String.format(template, i));
1083 while (f.exists()) {
1084 i++;
1085 f = new File(getInbound() + File.separator
1086 + String.format(template, i));
1087 }
1088 return f;
1089 }
1090
1091 public static String getInbound() {
1092 return MainHandler.getCurrentInstance().getProperty(BINKP_INBOUND,

Callers 2

unpackMethod · 0.95
unpackBundleMethod · 0.95

Calls 3

getInboundMethod · 0.95
formatMethod · 0.80
existsMethod · 0.80

Tested by

no test coverage detected