bitcore-node
bitcore-node copied to clipboard
Can't initialize an existing, but empty directory
It would be nice to be able to do something like this:
% mkdir bcnode_data
% docker --volume "${PWD}/bcnode_data:/mnt/bcnode_data" bcnode_img bash
root@afc49094328a:/# bitcore-node create /mnt/bcnode_data
...
I can't do this, however, because create fails if the target directory already exists (even if it is empty). See https://github.com/bitpay/bitcore-node/blob/0c88a540fdadff2157cfb6324be81331f640911c/lib/scaffold/create.js#L119.