Clean compile in a new virtual machine, run bitcoin-qt -testnet and I get:
No such file or directory: "/home/gavin/.bitcoin/testnet3" Aborted (core dumped)
Clean compile in a new virtual machine, run bitcoin-qt -testnet and I get:
No such file or directory: "/home/gavin/.bitcoin/testnet3" Aborted (core dumped)
Indeed:
terminate called after throwing an instance of 'boost::filesystem3::filesystem_error'
what(): boost::filesystem::create_directory: Bestand of map bestaat niet: "/home/s01/.bitcoin/testnet3"
Afgebroken (geheugendump gemaakt)
The problem is that if the parent directory (~/.bitcoin) doesn't yet exist, fs::create_directory will fail as it only creates a directory in an immediate parent directory. I've checked that using fs::create_directories in GetDataDir instead solves this.