All pastes #122175 Raw Edit

Someone

public text v1 · immutable
·published 2006-08-08 14:29 UTC
rendered paste body
                                        FileItem item = (FileItem) it.next();
                                        if(item.getSize() > 0) {
                                                String fname = item.getName();
                                                int barra = fname.lastIndexOf("\\");
                                                if(barra > 0) {
                                                        fname=fname.substring(barra + 1);
                                                }

                                                File f = new File(root + fname);
                                                item.write(f);
                                        }