mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-12 02:05:53 +00:00
Take the directory of the wallets absolute path name, to avoid creating temporary wallets in the system default directory. This does not play well with NFS.
This commit is contained in:
parent
fa746716ce
commit
db67db5943
@ -187,7 +187,7 @@ public class Wallet implements Serializable {
|
||||
FileOutputStream stream = null;
|
||||
File temp = null;
|
||||
try {
|
||||
File directory = f.getParentFile();
|
||||
File directory = f.getAbsoluteFile().getParentFile();
|
||||
temp = File.createTempFile("wallet", null, directory);
|
||||
stream = new FileOutputStream(temp);
|
||||
saveToFileStream(stream);
|
||||
|
Loading…
x
Reference in New Issue
Block a user