mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-15 11:45:51 +00:00
added path to files on the Mac
This commit is contained in:
parent
2df74e97dc
commit
fac6c6fabe
@ -51,8 +51,11 @@ public class BlockFileLoader implements Iterable<Block>, Iterator<Block> {
|
|||||||
*/
|
*/
|
||||||
public static List<File> getReferenceClientBlockFileList() {
|
public static List<File> getReferenceClientBlockFileList() {
|
||||||
String defaultDataDir;
|
String defaultDataDir;
|
||||||
if (System.getProperty("os.name").toLowerCase().indexOf("win") >= 0) {
|
String OS = System.getProperty("os.name").toLowerCase();
|
||||||
|
if (OS.indexOf("win") >= 0) {
|
||||||
defaultDataDir = System.getenv("APPDATA") + "\\.bitcoin\\blocks\\";
|
defaultDataDir = System.getenv("APPDATA") + "\\.bitcoin\\blocks\\";
|
||||||
|
} else if (OS.indexOf("mac") >= 0 || (OS.indexOf("darwin") >= 0)) {
|
||||||
|
defaultDataDir = System.getProperty("user.home") + "/Library/Application Support/Bitcoin/blocks/";
|
||||||
} else {
|
} else {
|
||||||
defaultDataDir = System.getProperty("user.home") + "/.bitcoin/blocks/";
|
defaultDataDir = System.getProperty("user.home") + "/.bitcoin/blocks/";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user