| | |
| | | package de.uhilger.filecms.pub; |
| | | |
| | | import de.uhilger.filecms.api.Api; |
| | | import de.uhilger.filecms.data.Bild; |
| | | import de.uhilger.wbx.Bild; |
| | | import de.uhilger.filecms.data.FileRef; |
| | | import java.io.File; |
| | | import java.util.ArrayList; |
| | |
| | | path.append(relPath); |
| | | File dir = new File(getBase().getAbsolutePath(), path.toString()); |
| | | if(dir.exists()) { |
| | | File[] fileArray = dir.listFiles(); |
| | | File[] fileArray = dir.listFiles(new ImgFileFilter()); |
| | | if(orderBy != null && orderBy.equalsIgnoreCase("date")) { |
| | | Arrays.sort(fileArray, new FileDateComparator(order)); |
| | | } |