mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue