MCPcopy Create free account
hub / github.com/BaseXdb/basex / touch

Method touch

basex-core/src/main/java/org/basex/io/IOFile.java:120–128  ·  view source on GitHub ↗

Creates a new instance of this file. @return success flag

()

Source from the content-addressed store, hash-verified

118 * @return success flag
119 */
120 public boolean touch() {
121 try {
122 Files.createFile(toPath());
123 return true;
124 } catch(final IOException ex) {
125 Util.debug(ex);
126 return false;
127 }
128 }
129
130 @Override
131 public byte[] read() throws IOException {

Callers 3

stopMethod · 0.95
stopMethod · 0.95
startUpdateMethod · 0.95

Calls 2

toPathMethod · 0.95
debugMethod · 0.95

Tested by

no test coverage detected