MCPcopy Index your code
hub / github.com/questdb/questdb / remove

Method remove

core/src/test/java/io/questdb/test/tools/TestUtils.java:2008–2017  ·  view source on GitHub ↗
(LPSZ lpsz)

Source from the content-addressed store, hash-verified

2006 }
2007
2008 public static boolean remove(LPSZ lpsz) {
2009 if (Files.remove(lpsz)) {
2010 return true;
2011 }
2012
2013 // could not remove file, logging error
2014 final FilesFacade ff = FilesFacadeImpl.INSTANCE;
2015 LOG.error().$("Could not remove file [path=").$safe(lpsz).$(", errno=").$(ff.errno()).I$();
2016 return false;
2017 }
2018
2019 public static void removeTestPath(CharSequence root) {
2020 try (Path path = new Path()) {

Calls 6

removeMethod · 0.95
errnoMethod · 0.95
I$Method · 0.80
$Method · 0.65
$safeMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected