Package railo.commons.io.res.filter

Examples of railo.commons.io.res.filter.ResourceFilter


    // check directory
    SecurityManager securityManager = pageContext.getConfig().getSecurityManager();
    securityManager.checkFileLocation(pageContext.getConfig(),directory,serverPassword);
     
      if(type!=TYPE_ALL) {
        ResourceFilter typeFilter = (type==TYPE_DIR)?DIRECTORY_FILTER:FILE_FILTER;
        if(filter==null) filter=typeFilter;
        else filter=new AndResourceFilter(new ResourceFilter[]{typeFilter,filter});
      }
     
     
View Full Code Here


   
      try {
        if(file.exists())file.delete();
        if(!file.exists())file.createFile(true);
         
        ResourceFilter filter;
       
       
        // include everything, no filter needed
        if(addCFMLFiles && addNonCFMLFiles)filter=null;
        // CFML Files but no other files
View Full Code Here

    else {
     
     
     
      // filter
      ResourceFilter f = zps.getFilter();
      if(f==null)f=this.filter;
      if(zps.isRecurse()) {
        if(f!=null)f=new OrResourceFilter(new ResourceFilter[]{DirectoryResourceFilter.FILTER,f});
      }
      else {
View Full Code Here

TOP

Related Classes of railo.commons.io.res.filter.ResourceFilter

Copyright © 2018 www.massapicom. 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.