All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ferris.bible.store.StoreByFileSystemConstants Maven / Gradle / Ivy

Go to download

Ferris Bible Common is a project which contains commonly shared coded for all of the other bible projects.

The newest version!
package org.ferris.bible.store;

import java.io.File;

/**
 * Constant values used by {@link StoreByFileSystem}.
 * 
 * @author Mike Remijan
 */
public final class StoreByFileSystemConstants 
{
	public static final File getStoreFolder() 
	{
		String userHomeStr
			= System.getProperty("user.home");
		
		File storeFolder
			= new File(userHomeStr, ".ferris-bible-store");
		
		if (!storeFolder.exists()) {
			storeFolder.mkdir();
		}
		
		return storeFolder;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy