MCPcopy Create free account
hub / github.com/cmu-db/benchbase / touch

Method touch

src/test/java/com/oltpbenchmark/util/TestFileUtil.java:36–43  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

34 public void tearDown() throws Exception {}
35
36 void touch(String name) {
37 try {
38 File f = new File(name);
39 if (!f.exists()) new FileOutputStream(f).close();
40 f.setLastModified(TimeUtil.getCurrentTime().getTime());
41 } catch (IOException e) {
42 }
43 }
44
45 void rm(String name) {
46 File file = new File(name);

Callers 1

Calls 4

getCurrentTimeMethod · 0.95
existsMethod · 0.80
getTimeMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected