Skip to content

Commit

Permalink
asset/btc: fix format time for assetdb-backup/btc filepath (#3056)
Browse files Browse the repository at this point in the history
changed:
	  assetdb-backup/btc/regtest/2024-11-03T16:59:15
	to:
	  assetdb-backup/btc/regtest/2024-11-03T17_24_29

	`:` invalid for Windows filepath

Co-authored-by: dev-warrior777 <>
  • Loading branch information
dev-warrior777 authored Nov 11, 2024
1 parent 54f51cb commit 7111a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/asset/btc/spv_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ func (w *spvWallet) connect(ctx context.Context, wg *sync.WaitGroup) (err error)
// moveWalletData will move all wallet files to a backup directory, but leaving
// the logs folder.
func (w *spvWallet) moveWalletData(backupDir string) error {
timeString := time.Now().Format("2006-01-02T15:04:05")
timeString := time.Now().Format("2006-01-02T15_04_05")
backupFolder := filepath.Join(backupDir, w.chainParams.Name, timeString)
err := os.MkdirAll(backupFolder, 0744)
if err != nil {
Expand Down

0 comments on commit 7111a0d

Please sign in to comment.