public static String getSupportFolder ( ) { String homedir = System . getProperty ( "user.home" ) ; String dirName = "OpenXES" ; if ( isRunningWindows ( ) ) { // any windows flavor ( new File ( homedir + "\\" + dirName ) ) . mkdirs ( ) ; // create directories if necessary return homedir + "\\" + dirName + "\\" ; } else if ( isRunningMacOsX ( ) ) { // hey, it's a mac! ( new File ( homedir + "/Library/Application Support/" + dirName ) ) . mkdirs ( ) ; return homedir + "/Library/Application Support/" + dirName + "/" ; } else { // most likely Linux or any other *NIX ( new File ( homedir + "/." + dirName ) ) . mkdirs ( ) ; // create directories if necessary return homedir + "/." + dirName + "/" ; } }
Retrieves the path of the platform - dependent OpenXES support folder .