| | |
| | | import de.uhilger.filecms.data.FileRef; |
| | | import de.uhilger.filecms.pub.AbstractComparator; |
| | | import de.uhilger.filecms.pub.FileNameComparator; |
| | | import de.uhilger.filecms.pub.ImgFileFilter; |
| | | import de.uhilger.wbx.Bild; |
| | | import de.uhilger.wbx.WbxUtils; |
| | | import static de.uhilger.wbx.WbxUtils.EMPTY_STRING; |
| | | import static de.uhilger.wbx.WbxUtils.WBX_FILE_BASE; |
| | | import de.uhilger.wbx.data.Inhalt; |
| | | import de.uhilger.wbx.web.TNServlet; |
| | | import java.io.File; |
| | | import java.io.FileFilter; |
| | | import java.io.FileInputStream; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.FileOutputStream; |
| | |
| | | logger.fine("listing path: " + path); |
| | | File dir = new File(path); |
| | | if (dir.exists()) { |
| | | File[] fileArray = dir.listFiles(); |
| | | File[] fileArray = dir.listFiles(new ImgFileFilter()); |
| | | if (orderBy != null && orderBy.equalsIgnoreCase("name")) { |
| | | Arrays.sort(fileArray, new FileNameComparator(order)); |
| | | } else { |