Package com.thinkgem.jeesite.modules.cms.entity

Examples of com.thinkgem.jeesite.modules.cms.entity.FileTpl


         File[] files = f.listFiles();
         if (files != null) {
           List<FileTpl> list = new ArrayList<FileTpl>();
           for (File file : files) {
                    if(file.isFile() || directory)
                 list.add(new FileTpl(file, context.getRealPath("")));
           }
           return list;
         } else {
           return new ArrayList<FileTpl>(0);
         }
View Full Code Here


     }

    public List<FileTpl> getListForEdit(String path){
        List<FileTpl> list = getListByPath(path, true);
        List<FileTpl> result = new ArrayList<FileTpl>();
        result.add(new FileTpl(new File(context.getRealPath(path)), context.getRealPath("")));
        getAllDirectory(result, list);
        return result;
    }
View Full Code Here

    }

    public FileTpl get(String name) {
       File f = new File(context.getRealPath(name));
       if (f.exists()) {
         return new FileTpl(f, "");
       } else {
         return null;
       }
     }
View Full Code Here

TOP

Related Classes of com.thinkgem.jeesite.modules.cms.entity.FileTpl

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.