MCPcopy Create free account
hub / github.com/ReadyTalk/avian / generateFile

Method generateFile

classpath/java/io/File.java:75–82  ·  view source on GitHub ↗
(File directory, String prefix, long state, String suffix)

Source from the content-addressed store, hash-verified

73 }
74
75 private static File generateFile(File directory, String prefix, long state, String suffix) {
76 File ret = new File(directory, prefix + state + suffix);
77 if(ret.exists()) {
78 return null;
79 } else {
80 return ret;
81 }
82 }
83
84 private static String stripSeparators(String p) {
85 while (p.endsWith(FileSeparator)) {

Callers 1

createTempFileMethod · 0.95

Calls 1

existsMethod · 0.95

Tested by

no test coverage detected