Skip to content

Commit

Permalink
asset/btc: fix format time for assetdb-backup/btc filepath
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
  • Loading branch information
dev-warrior777 committed Nov 3, 2024
1 parent 3506117 commit c6b1c6c
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 c6b1c6c

Please sign in to comment.