struts2-fileupload-plugin/src/main/java/org/apache/struts2/fileupload/DiskFileItemFactoryWrapper.java [97:114]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private File convertStringToFile(String path) {
        File repoPath = new File(path);
        if (repoPath == null || !repoPath.isDirectory()) {
            File tempFile = null;
            try {
                tempFile = File.createTempFile("","");
            }
            catch (IOException ioe) {
                // I guess we're just sort of screwed, punt
                repoPath = null;
            }
            if (tempFile != null ) {
                repoPath = tempFile.getParentFile();
                tempFile.delete();
            }
        }
        return repoPath;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/struts2/fileupload/DiskFileItemFactoryWrapper.java [101:118]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private File convertStringToFile(String path) {
        File repoPath = new File(path);
        if (repoPath == null || !repoPath.isDirectory()) {
            File tempFile = null;
            try {
                tempFile = File.createTempFile("","");
            }
            catch (IOException ioe) {
                // I guess we're just sort of screwed, punt
                repoPath = null;
            }
            if (tempFile != null ) {
                repoPath = tempFile.getParentFile();
                tempFile.delete();
            }
        }
        return repoPath;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



