MCPcopy Create free account
hub / github.com/questdb/questdb / touch

Method touch

core/src/main/java/io/questdb/std/Files.java:550–557  ·  view source on GitHub ↗
(LPSZ lpsz)

Source from the content-addressed store, hash-verified

548 }
549
550 public static boolean touch(LPSZ lpsz) {
551 long fd = openRW(lpsz);
552 boolean result = fd > 0;
553 if (result) {
554 close(fd);
555 }
556 return result;
557 }
558
559 public static boolean truncate(long fd, long size) {
560 return truncate(toOsFd(fd), size);

Calls 2

openRWMethod · 0.95
closeMethod · 0.95