src/main/java/robocup/server/SoccerServerProcess.java
/**
     * Check if the given directory exists and if not, try to create it
     *
     * @param directoryPath
     * @throws IOException
     */
Check if the given directory exists and if not, try to create it
@param directoryPath
@throws IOException
Check if the given directory exists and if not try to create it @param directoryPath @throws IOException
private File checkOrCreateDirectory(String directoryPath) throws
            IOException {
        File directory = new File(directoryPath);
        if (!directory.exists()) {
            if (!directory.mkdirs()) {
                throw new IOException("Match directory " + directory
                        .getCanonicalPath()
                        + " could not be created!");
            }
        } else {
            if (!directory.isDirectory()) {
                throw new IOException("Match directory " + directory
                        .getCanonicalPath()
                        + " is not a directory!");
            }
        }
        return directory;
    }
private File checkOrCreateDirectory ( String directoryPath ) throws IOException { File directory = new File ( directoryPath ) ; if ( ! directory . exists ( ) ) { if ( ! directory . mkdirs ( ) ) { throw new IOException ( "Match directory " + directory . getCanonicalPath ( ) + " could not be created!" ) ; } } else { if ( ! directory . isDirectory ( ) ) { throw new IOException ( "Match directory " + directory . getCanonicalPath ( ) + " is not a directory!" ) ; } } return directory ; }
Check if the given directory exists and if not, try to create it
 @param directoryPath
 @throws IOException
Check if the given directory exists and if not try to create it @param directoryPath @throws IOException
// directory does not exist -> create it // directory exists