Kawai Wiki

Compare Revisions

Ignore whitespace Rev 170 → Rev 171

/trunk/src/main/java/org/kawai/action/FileAction.java
93,16 → 93,16
File[] others = (new File(ApplicationManager.getRealPath() + File.separator + "uploads" + File.separator + "others")).listFiles();
Set<String> files = new TreeSet<String>();
for(File f : images) {
if (f.getName().startsWith(".")) continue;
if (images != null) for(File f : images) {
if (f.isHidden()) continue;
files.add("/uploads/images/" + f.getName());
}
for(File f : archive) {
if (f.getName().startsWith(".")) continue;
if (archive != null) for(File f : archive) {
if (f.isHidden()) continue;
files.add("/uploads/archive/" + f.getName());
}
for(File f : others) {
if (f.getName().startsWith(".")) continue;
if (others != null) for(File f : others) {
if (f.isHidden()) continue;
files.add("/uploads/others/" + f.getName());
}
/trunk/src/main/webapp/uploads/archive/.create_dir