233234235236237238239240241242243
if (workDir.charAt(0) == '/') path = Vfs.lookupNative(workDir); else path = CauchoSystem.getResinHome().lookupNative(workDir); try { path.mkdirs(); } catch (IOException e) { } return path; }
140141142143144145146147148149150
{ try { Path path = getRoot().lookup(org); path = path.lookup(module); path = path.lookup(ext + "s"); path.mkdirs(); path = path.lookup(artifact + "_" + rev + "." + ext); WriteStream os = path.openWrite(); try {
532533534535536537538539540541542
Path parent = path.getParent(); try { if (! parent.isDirectory()) { if (! parent.mkdirs()) { /* XXX: logWarning(L.l("Can't create log directory {0}.\n", parent)); */ }
7273747576777879808182
path = Vfs.lookup("file:/tmp/caucho"); _localWorkDir.setGlobal(path); try { path.mkdirs(); } catch (java.io.IOException e) { } return path; }
6566676869707172737475
path = Vfs.lookup("file:/tmp/caucho"); _localWorkDir = path; try { path.mkdirs(); } catch (java.io.IOException e) { } return path; }
29252926292729282929293029312932293329342935
public static FileInputOutput tmpfile(Env env) { try { Path tmp = env.getTempDirectory(); tmp.mkdirs(); Path file = tmp.createTempFile("resin", "tmp"); env.addCleanup(new RemoveFile(file));
30053006300730083009301030113012301330143015
22462247224822492250225122522253225422552256
Path path = env.lookupPwd(dirname); try { if (recursive) return path.mkdirs(); else return path.mkdir(); } catch (IOException e) { log.log(Level.FINE, e.toString(), e);
102103104105106107108109110111112
Path subpath = _path.lookup(name); Path parent = subpath.getParent(); if (! parent.exists()) { try { parent.mkdirs(); } catch (IOException e) { throw new NamingException(e.toString()); } }
136137138139140141142143144145146
Path subpath = _path.lookup(name); try { Path parent = subpath.getParent(); if (! parent.exists()) parent.mkdirs(); subpath.setValue(obj); } catch (Exception e) { throw new NamingException(e.toString()); } }