public static File getDataDir ( ) { final File dir ; if ( SystemUtils . IS_OS_WINDOWS ) { dir = new File ( System . getenv ( "APPDATA" ) , "LittleShoot" ) ; } else if ( SystemUtils . IS_OS_MAC_OSX ) { // TODO: Is this correct on international machines?? dir = new File ( "/Library/Application\\ Support/LittleShoot" ) ; } else { dir = getLittleShootDir ( ) ; } if ( dir . isDirectory ( ) || dir . mkdirs ( ) ) return dir ; LOG . error ( "Not a directory: {}" , dir ) ; return new File ( SystemUtils . USER_HOME , ".littleshoot" ) ; }
Gets the directory to use for LittleShoot data .