Package com.caucho.vfs

Examples of com.caucho.vfs.Path.mkdirs()


    if (workDir.charAt(0) == '/')
      path = Vfs.lookupNative(workDir);
    else
      path = CauchoSystem.getResinHome().lookupNative(workDir);
    try {
      path.mkdirs();
    } catch (IOException e) {
    }

    return path;
  }
View Full Code Here


  {
    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 {
View Full Code Here

    Path parent = path.getParent();

    try {
      if (! parent.isDirectory()) {
        if (! parent.mkdirs()) {
          /* XXX:
          logWarning(L.l("Can't create log directory {0}.\n",
                         parent));
          */
        }
View Full Code Here

      path = Vfs.lookup("file:/tmp/caucho");

    _localWorkDir.setGlobal(path);
   
    try {
      path.mkdirs();
    } catch (java.io.IOException e) {
    }

    return path;
  }
View Full Code Here

    path = Vfs.lookup("file:/tmp/caucho");

    _localWorkDir = path;
   
    try {
      path.mkdirs();
    } catch (java.io.IOException e) {
    }

    return path;
  }
View Full Code Here

  public static FileInputOutput tmpfile(Env env)
  {
    try {
      Path tmp = env.getTempDirectory();

      tmp.mkdirs();

      Path file = tmp.createTempFile("resin", "tmp");

      env.addCleanup(new RemoveFile(file));
     
View Full Code Here

  public static FileInputOutput tmpfile(Env env)
  {
    try {
      Path tmp = env.getTempDirectory();

      tmp.mkdirs();

      Path file = tmp.createTempFile("resin", "tmp");

      env.addCleanup(new RemoveFile(file));
View Full Code Here

    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);
View Full Code Here

    Path subpath = _path.lookup(name);

    Path parent = subpath.getParent();
    if (! parent.exists()) {
      try {
        parent.mkdirs();
      } catch (IOException e) {
        throw new NamingException(e.toString());
      }
    }
View Full Code Here

    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());
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.