Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions packages/bitcore-cli/copyTestWallets
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env node

const fs = require('fs');
const os = require('os');
const path = require('path');

const sourceDir = path.join(__dirname, 'test/wallets');
const targetDir = path.join(__dirname, 'build/test/wallets');

if (!fs.existsSync(targetDir)) {
fs.mkdirSync(targetDir, { recursive: true });
}

const srcContents = fs.readdirSync(sourceDir);
for (const item of srcContents) {
const srcPath = path.join(sourceDir, item);
const targetPath = path.join(targetDir, item);
fs.copyFileSync(srcPath, targetPath);
}
Loading