MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / createTempFile

Method createTempFile

CodenameOne/src/com/codename1/io/File.java:123–128  ·  view source on GitHub ↗
(String prefix, String suffix)

Source from the content-addressed store, hash-verified

121 ///
122 /// - `IOException`
123 public static File createTempFile(String prefix, String suffix) throws IOException {
124 String p = FileSystemStorage.getInstance().getAppHomePath() + "/temp/";
125 FileSystemStorage.getInstance().mkdir(p);
126 return new File(p + prefix + System.currentTimeMillis() + suffix);
127
128 }
129
130 /// Returns the file name.
131 ///

Calls 4

getInstanceMethod · 0.95
currentTimeMillisMethod · 0.95
getAppHomePathMethod · 0.45
mkdirMethod · 0.45