Package railo.commons.io.res

Examples of railo.commons.io.res.Resource.mkdirs()


          int mode;
          while ( ( entry = tis.getNextTarEntry()) != null ) {
            //print.ln(entry);
            Resource target=targetDir.getRealResource(entry.getName());
              if(entry.isDirectory()) {
                  target.mkdirs();
              }
              else {
                Resource parent=target.getParentResource();
                  if(!parent.exists())parent.mkdirs();
                  IOUtil.copy(tis,target,false);
View Full Code Here


              if(entry.isDirectory()) {
                  target.mkdirs();
              }
              else {
                Resource parent=target.getParentResource();
                  if(!parent.exists())parent.mkdirs();
                  IOUtil.copy(tis,target,false);
              }
              target.setLastModified(entry.getModTime().getTime());
              mode=entry.getMode();
              if(mode>0)target.setMode(mode);
View Full Code Here

          zis = new ZipInputStream( IOUtil.toBufferedInputStream(zipFile.getInputStream()) ) ;    
          ZipEntry entry;
          while ( ( entry = zis.getNextEntry()) != null ) {
            Resource target=targetDir.getRealResource(entry.getName());
              if(entry.isDirectory()) {
                  target.mkdirs();
              }
              else {
                Resource parent=target.getParentResource();
                  if(!parent.exists())parent.mkdirs();
                  IOUtil.copy(zis,target,false);
View Full Code Here

              if(entry.isDirectory()) {
                  target.mkdirs();
              }
              else {
                Resource parent=target.getParentResource();
                  if(!parent.exists())parent.mkdirs();
                  IOUtil.copy(zis,target,false);
              }
              target.setLastModified(entry.getTime());
              zis.closeEntry() ;
          }
View Full Code Here

          Enumeration en = zf.entries();
          while(en.hasMoreElements()){
            entry = (ZipEntry) en.nextElement();
            Resource target=targetDir.getRealResource(entry.getName());
              if(entry.isDirectory()) {
                  target.mkdirs();
              }
              else {
                Resource parent=target.getParentResource();
                  if(!parent.exists())parent.mkdirs();
                  InputStream is = zf.getInputStream(entry);
View Full Code Here

              if(entry.isDirectory()) {
                  target.mkdirs();
              }
              else {
                Resource parent=target.getParentResource();
                  if(!parent.exists())parent.mkdirs();
                  InputStream is = zf.getInputStream(entry);
                  IOUtil.copy(is,target,true);
              }
              target.setLastModified(entry.getTime());
          }
View Full Code Here

      tar.getParentResource().mkdirs();
      Resource zip = frp.getResource("/Users/mic/temp/b/a.zip");
      zip.getParentResource().mkdirs();
     
      Resource tgz1 = frp.getResource("/Users/mic/temp/b/tgz");
      tgz1.mkdirs();
      Resource tar1 = frp.getResource("/Users/mic/temp/b/tar");
      tar1.mkdirs();
      Resource zip1 = frp.getResource("/Users/mic/temp/b/zip");
      zip1.mkdirs();
     
View Full Code Here

      zip.getParentResource().mkdirs();
     
      Resource tgz1 = frp.getResource("/Users/mic/temp/b/tgz");
      tgz1.mkdirs();
      Resource tar1 = frp.getResource("/Users/mic/temp/b/tar");
      tar1.mkdirs();
      Resource zip1 = frp.getResource("/Users/mic/temp/b/zip");
      zip1.mkdirs();
     
      compressTGZ(new Resource[]{src}, tgz, -1);
      compressTar(new Resource[]{src}, tar, -1);
View Full Code Here

      Resource tgz1 = frp.getResource("/Users/mic/temp/b/tgz");
      tgz1.mkdirs();
      Resource tar1 = frp.getResource("/Users/mic/temp/b/tar");
      tar1.mkdirs();
      Resource zip1 = frp.getResource("/Users/mic/temp/b/zip");
      zip1.mkdirs();
     
      compressTGZ(new Resource[]{src}, tgz, -1);
      compressTar(new Resource[]{src}, tar, -1);
      compressZip(new Resource[]{src}, zip, null);
     
View Full Code Here

        }
    }
   
    private Resource getTLDFromJarAsFile(Config config, Resource jarFile) {
      Resource jspTagLibDir = config.getTempDirectory().getRealResource("jsp-taglib");
      if(!jspTagLibDir.exists())jspTagLibDir.mkdirs();
     
      String filename=null;
      try {
      filename=Md5.getDigestAsString(ResourceUtil.getCanonicalPathEL(jarFile)+jarFile.lastModified());
    } catch (IOException e) {}
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.