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

Method checkPath

src/main/java/com/oltpbenchmark/util/FileUtil.java:87–95  ·  view source on GitHub ↗
(String path, String name)

Source from the content-addressed store, hash-verified

85 }
86
87 public static String checkPath(String path, String name) throws FileNotFoundException {
88 if (path != null) path = path.trim();
89 if (path == null || path.isEmpty()) return null;
90
91 if (!FileUtil.exists(path)) {
92 throw new FileNotFoundException(name + " not found:" + path);
93 }
94 return path;
95 }
96
97 /**
98 * Create any directory in the list paths if it doesn't exist

Callers 3

setSessionSetupFileMethod · 0.95
setDDLPathMethod · 0.95

Calls 2

existsMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected