MCPcopy Create free account
hub / github.com/demoth/jake2 / CreatePath

Method CreatePath

qcommon/src/main/java/jake2/qcommon/filesystem/FS.java:184–193  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

182 * Creates any directories needed to store the given filename.
183 */
184 public static void CreatePath(String path) {
185 int index = path.lastIndexOf('/');
186 // -1 if not found and 0 means write to root
187 if (index > 0) {
188 File f = new File(path.substring(0, index));
189 if (!f.mkdirs() && !f.isDirectory()) {
190 Com.Printf("can't create path \"" + path + '"' + "\n");
191 }
192 }
193 }
194
195 public static boolean FileExists(String filename) {
196 try {

Callers 7

CLClass · 0.95
ParseDownloadMethod · 0.95
ConsoleClass · 0.95
GL_ScreenShot_fMethod · 0.95
SV_GameMap_fMethod · 0.95
SV_CopySaveGameMethod · 0.95
setWriteDirMethod · 0.95

Calls 1

PrintfMethod · 0.95

Tested by

no test coverage detected