Package net.naijatek.myalumni.util

Examples of net.naijatek.myalumni.util.FileHelper


   
    public static List<FileHelper> getDirFileNameLength(final File dir, String fileExt) throws IOException {
      List<FileHelper> content = new ArrayList<FileHelper>();

        File[] files = dir.listFiles();
        FileHelper fh = null;
        if (files != null) {
            for (File file : files) {
                fh = new FileHelper();
                if (file.isFile() && !file.getName().startsWith(".") && file.getName().indexOf(fileExt) > 1) {
                  fh.setFileName(file.getName());
                  fh.setFileSize(getHumanSize(file.length()));
                  fh.setFileDate(new Date(file.lastModified()));
                    content.add(fh);
                }
            }//for
        }//if
        return content;
View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.util.FileHelper

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.